git.iko.soy/typeable/pandoc
on master help sign in
HTML writer: Don't escape contents of EQ tags with --gladtex.

This fixes a regression from 1.8.x. Closes #428.

commitc468272e340233ef0bdd75c9422c6167e05d5898 authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 21 Feb 2012, 09:00 (15 years ago) parent24e3a65
1 file changed+2−2
src/Text/Pandoc/Writers/HTML.hs+2−2
src/Text/Pandoc/Writers/HTML.hs+2−2
@@ -610,8 +610,8 @@ inlineToHtml opts inline =
610610 DisplayMath -> brtag >> m >> brtag
611611 GladTeX ->
612612 return $ case t of
613− InlineMath -> preEscapedString "<EQ ENV=\"math\">" >> toHtml str >> preEscapedString "</EQ>"
614− DisplayMath -> preEscapedString "<EQ ENV=\"displaymath\">" >> toHtml str >> preEscapedString "</EQ>"
613+ InlineMath -> preEscapedString $ "<EQ ENV=\"math\">" ++ str ++ "</EQ>"
614+ DisplayMath -> preEscapedString $ "<EQ ENV=\"displaymath\">" ++ str ++ "</EQ>"
615615 MathML _ -> do
616616 let dt = if t == InlineMath
617617 then DisplayInline