Remove <wbr> tags from posts with TeX.

This commit is contained in:
ccd0 2016-02-07 14:11:18 -08:00
parent 89086b8420
commit 684ea23948

View File

@ -63,6 +63,8 @@ Fourchan =
math: ->
return unless /\[(math|eqn)\]/.test @nodes.comment.textContent
# XXX <wbr> tags frequently break MathJax; remove them.
$.rm wbr for wbr in $$ 'wbr', @nodes.comment
cb = =>
return unless doc.contains @nodes.comment
$.off d, 'PostsInserted', cb