(Run on version 2.17.1.1)

On Sunday, March 6, 2022 at 3:56:14 PM UTC-8 Connor Patrick Jackson wrote:
If a reprex is desired: 

Contents of test.txt

# test

\begin{align*}
f(x) &= x \\
&= 2
\end{align*}



Call to pandoc: pandoc test.txt --mathml -f commonmark_x -t html5

yields:

<h1 id="test">test</h1>
<p>\begin{align*} f(x) &amp;= x \ &amp;= 2 \end{align*}</p>


Instead of the correct MathML that is rendered with -f markdown

<h1 id="test">test</h1>
<p><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mtable><mtr><mtd columnalign="right"><mi>f</mi><mrow><mo stretchy="true" form="prefix">(</mo><mi>x</mi><mo stretchy="true" form="postfix">)</mo></mrow></mtd><mtd columnalign="left"><mo>=</mo><mi>x</mi></mtd></mtr><mtr><mtd columnalign="right"></mtd><mtd columnalign="left"><mo>=</mo><mn>2</mn></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{align*}
f(x) &amp;= x \\
&amp;= 2
\end{align*}</annotation></semantics></math></p>

On Sunday, March 6, 2022 at 3:53:24 PM UTC-8 Connor Patrick Jackson wrote:
I am attempting to use an align environment in a markdown file being compiled to both HTML and LaTeX. Doing so works fine with the markdown reader, but not with the commonmark_x reader, for either MathML or MathJax (the commonmark_x reader just passes it through as unaltered text). I thought that I had previously been able to use the commonmark_x reader to handle align environments for equation aligning, but I could be misremembering. 

Could someone confirm for me whether this is a feature that should be working, but isn't (in which case I'll go file a bug report), or if this is yet to be implemented in the commonmark_x reader? If the latter, is this an extension that is yet to be implemented (latex_macros?), or just a feature that needs to be ported over?

Thanks! 

Connor

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b27ac731-9e29-4b58-bda7-7e812b11cb46n%40googlegroups.com.