Normalize text nodes after wbr tags are removed from [math]/[eqn] posts.
This commit is contained in:
parent
66da272698
commit
9182098de5
@ -64,7 +64,9 @@ Fourchan =
|
|||||||
math: ->
|
math: ->
|
||||||
return unless /\[(math|eqn)\]/.test @nodes.comment.textContent
|
return unless /\[(math|eqn)\]/.test @nodes.comment.textContent
|
||||||
# XXX <wbr> tags frequently break MathJax; remove them.
|
# XXX <wbr> tags frequently break MathJax; remove them.
|
||||||
$.rm wbr for wbr in $$ 'wbr', @nodes.comment
|
if (wbrs = $$ 'wbr', @nodes.comment).length
|
||||||
|
$.rm wbr for wbr in wbrs
|
||||||
|
@nodes.comment.normalize()
|
||||||
cb = =>
|
cb = =>
|
||||||
return unless doc.contains @nodes.comment
|
return unless doc.contains @nodes.comment
|
||||||
$.off d, 'PostsInserted', cb
|
$.off d, 'PostsInserted', cb
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user