Open rgaiacs opened 9 years ago
This was discovery when using Gitit, see jgm/gitit#479.
Valid MathML tags are sanitezed.
Generate a simple MathML element with Pandoc.
$ pandoc -f markdown -t html --mathml <<EOF \$x\$ EOF <p><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>x</mi><annotation encoding="application/x-tex">x</annotation></semantics></math></p>
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi>x</math>
This MathML element is invalid.
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>x</mi><annotation encoding="application/x-tex">x</annotation></semantics></math></p>
This is the unchanged output from Pandoc.
The semantics and annotation tags are valid MathML 3, see http://www.w3.org/TR/MathML/chapter5.html#mixing.semantic.annotations for more information.
semantics
annotation
$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.8.3 $ ghc-pkg list gitit gitit-0.10.6.1 $ ghc-pkg list pandoc pandoc-1.13.3 $ ghc-pkg list texmath texmath-0.8.0.1 $ ghc-pkg list xss-sanitize xss-sanitize-0.3.5.4
This was discovery when using Gitit, see jgm/gitit#479.
Summary
Valid MathML tags are sanitezed.
Steps To Reproduce
Generate a simple MathML element with Pandoc.
Actual Results
This MathML element is invalid.
Expected Results
This is the unchanged output from Pandoc.
Additional Information
The
semantics
andannotation
tags are valid MathML 3, see http://www.w3.org/TR/MathML/chapter5.html#mixing.semantic.annotations for more information.Environment Information