Closed
Description
MathML math
accepts an alttext
attribute that "provides a textual alternative as a fall-back for user agents that do not support embedded MathML or images." This attribute isn't present at the moment:
$ pandoc --version
pandoc 1.13
$ cat math.html
<p><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>a</mi><mn>2</mn></msup><mo>+</mo><msup><mi>b</mi><mn>2</mn></msup><mo>=</mo><msup><mi>c</mi><mn>2</mn></msup></mrow></math></p>
$ cat math.md
$a^2 + b^2 = c^2$
$ pandoc -f markdown -t html5 --mathml -o math.html math.md
$ cat math.html
<p><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>a</mi><mn>2</mn></msup><mo>+</mo><msup><mi>b</mi><mn>2</mn></msup><mo>=</mo><msup><mi>c</mi><mn>2</mn></msup></mrow></math></p>
Will be nice have this alttext
with the LaTeX source of the equation or use MathML annotation for it.
@fred-wang Do you like to say something?
Metadata
Metadata
Assignees
Labels
No labels