8000 Add alttext at math elements · Issue #1635 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add alttext at math elements #1635
Closed
Closed
@rgaiacs

Description

@rgaiacs

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0