We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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>
Copy the MathML element and sanitize it.
<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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.
Copy the MathML element and sanitize it.
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
The text was updated successfully, but these errors were encountered: