jgm/texmath

mathml vector - typeset error

tk-100 opened this issue · 1 comments

Dear maintainers,

when converting markdown to html with the --mathml option, vectors are not typeset correctly.

Example Input:

Term: $\vec a = \vec b$

Output:

<p>Term:
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mover><mi>a</mi><mo accent="true">→</mo></mover><mo>=</mo><mover><mi>b</mi><mo accent="true">⃗</mo></mover></mrow><annotation encoding="application/x-tex">\vec a = \vec b</annotation></semantics></math></p>

The error is located in <mo accent="true">⃗</mo>, which should be <mo accent="true">→</mo>

I can reproduce this error on Try pandoc! as well with pandoc 3.1.2 on arch linux.

Many thanks for the quick solution!