From 684ea23948770874c90edc495e6c7a0e268d6232 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 7 Feb 2016 14:11:18 -0800 Subject: [PATCH] Remove tags from posts with TeX. --- src/Miscellaneous/Fourchan.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Miscellaneous/Fourchan.coffee b/src/Miscellaneous/Fourchan.coffee index 2dcad9b04..1e67741e5 100644 --- a/src/Miscellaneous/Fourchan.coffee +++ b/src/Miscellaneous/Fourchan.coffee @@ -63,6 +63,8 @@ Fourchan = math: -> return unless /\[(math|eqn)\]/.test @nodes.comment.textContent + # XXX 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