From: Connor Patrick Jackson <cpjackson-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: align environment with commonmark
Date: Sun, 6 Mar 2022 15:58:02 -0800 (PST) [thread overview]
Message-ID: <b27ac731-9e29-4b58-bda7-7e812b11cb46n@googlegroups.com> (raw)
In-Reply-To: <96046e7a-5618-4578-92c0-2de0fd02d416n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 2391 bytes --]
(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) &= x \ &= 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) &= x \\
> &= 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
[-- Attachment #1.2: Type: text/html, Size: 4408 bytes --]
next prev parent reply other threads:[~2022-03-06 23:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-06 23:53 Connor Patrick Jackson
[not found] ` <c3c60679-e42e-4c01-a37b-7a940aad0370n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-03-06 23:56 ` Connor Patrick Jackson
[not found] ` <96046e7a-5618-4578-92c0-2de0fd02d416n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-03-06 23:58 ` Connor Patrick Jackson [this message]
2022-03-07 4:49 ` John MacFarlane
[not found] ` <m2o82iv021.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-03-07 6:56 ` Connor Patrick Jackson
[not found] ` <58f03732-4779-4d40-8012-f383dd427755n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-03-07 7:30 ` Connor Patrick Jackson
[not found] ` <35a67fa0-cdac-4bbc-b766-e89ca6f7f790n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-03-07 18:05 ` John MacFarlane
[not found] ` <m2czixprj5.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-03-07 23:46 ` Connor Patrick Jackson
2022-03-07 17:59 ` John MacFarlane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b27ac731-9e29-4b58-bda7-7e812b11cb46n@googlegroups.com \
--to=cpjackson-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).