public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Disable inicode math in markdown > html > markdown conversion
Date: Thu, 22 Sep 2022 08:29:13 -0700	[thread overview]
Message-ID: <DE14185D-3ADC-472D-8D05-8347EE6CD8FE@gmail.com> (raw)
In-Reply-To: <13b58a78-9b10-43f7-83fc-3905e01a7c69n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

When writing HTML, use

-t html --mathjax

and when reading HTML, use

-f html+tex_math_dollars

This should round-trip the math. as tex.

> On Sep 22, 2022, at 8:25 AM, Gabriel Braun <braun.pineschi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 
> Hello!
> 
> I need to convert a markdown document to HTML and then convert it back to markdown. When I do this, math like $\pi$ gets converted to <span class="math inline"><em>\u03c0</em></span> in the HTML and to *\u03c0* when I convert it back to markdown. 
> 
> Is there a way to disable this feature and get $\pi$ back in the final markdown? I have tried using html-tex_math_dollars, but that ended up escaping all the $ signs.
> 
> Thank you!
> 
> -- 
> 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/13b58a78-9b10-43f7-83fc-3905e01a7c69n%40googlegroups.com.


  parent reply	other threads:[~2022-09-22 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22 15:25 Gabriel Braun
     [not found] ` <13b58a78-9b10-43f7-83fc-3905e01a7c69n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-09-22 15:29   ` John MacFarlane [this message]
     [not found]     ` <DE14185D-3ADC-472D-8D05-8347EE6CD8FE-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-09-22 16:41       ` Gabriel Braun

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=DE14185D-3ADC-472D-8D05-8347EE6CD8FE@gmail.com \
    --to=fiddlosopher-re5jqeeqqe8avxtiumwx3w@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).