* Disable inicode math in markdown > html > markdown conversion @ 2022-09-22 15:25 Gabriel Braun [not found] ` <13b58a78-9b10-43f7-83fc-3905e01a7c69n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Gabriel Braun @ 2022-09-22 15:25 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 852 bytes --] 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. [-- Attachment #1.2: Type: text/html, Size: 1316 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <13b58a78-9b10-43f7-83fc-3905e01a7c69n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Disable inicode math in markdown > html > markdown conversion [not found] ` <13b58a78-9b10-43f7-83fc-3905e01a7c69n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2022-09-22 15:29 ` John MacFarlane [not found] ` <DE14185D-3ADC-472D-8D05-8347EE6CD8FE-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: John MacFarlane @ 2022-09-22 15:29 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <DE14185D-3ADC-472D-8D05-8347EE6CD8FE-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: Disable inicode math in markdown > html > markdown conversion [not found] ` <DE14185D-3ADC-472D-8D05-8347EE6CD8FE-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2022-09-22 16:41 ` Gabriel Braun 0 siblings, 0 replies; 3+ messages in thread From: Gabriel Braun @ 2022-09-22 16:41 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 2323 bytes --] Worked when I used tex_math_single_backlash for reading HTML. Thank you! On Thu, Sep 22, 2022 at 12:29 PM John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > 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 > . > > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/2F_mBqv51Vw/unsubscribe. > To unsubscribe from this group and all its topics, 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/DE14185D-3ADC-472D-8D05-8347EE6CD8FE%40gmail.com > . > -- 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/CAJx6N45PxAEUaRpZ9TKCNPpff09Mq1d4w2WkvSwxhc9YvpQU5g%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 3908 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-22 16:41 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-09-22 15:25 Disable inicode math in markdown > html > markdown conversion Gabriel Braun [not found] ` <13b58a78-9b10-43f7-83fc-3905e01a7c69n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-09-22 15:29 ` John MacFarlane [not found] ` <DE14185D-3ADC-472D-8D05-8347EE6CD8FE-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2022-09-22 16:41 ` Gabriel Braun
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).