public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Phil <phillipruppert-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Help: Pandoc is removing $ and next character on md to docx
Date: Mon, 24 May 2021 13:39:54 -0700	[thread overview]
Message-ID: <m2bl8zooh1.fsf@MacBook-Pro.hsd1.ca.comcast.net> (raw)
In-Reply-To: <ba2652d0-4561-4680-9e5f-46bbd7b6dc09n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

Phil <phillipruppert-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I am having a problem with dollar signs getting removed on a markdown to 
> docx conversion.
>
> My markdown with "$10 to $65" shows in docx output as "0 to 5"
>
> This is pandoc version 2.9.2.1

My first advice would be to try upgrading (we're on 2.13).
But I don't think that's the issue.

> Here is the command I am running:
> pandoc -f markdown+multiline_tables+hard_line_breaks+mmd_title_block 
> --reference-doc=refDoc.docx --output=tmp.docx tmp.txt"

> Any idea how to fix? I don't see anything in version notes to suggest 
> upgrading pandoc from my current version would address an issue with dollar 
> signs. I've become aware of tex_math_dollars extension, but documentation 
> seems to suggest my input formatting should be exempted from this.

tex_math_dollars is enabled by default in pandoc's 'markdown', so you
could try disabling it.  -f markdown-tex_math_dollars+hard_line_breaks etc.

But I don't really see how you could be getting the results
you say you are, even with this extension enabled.
To say more, I'd need a minimal markdown input sufficient
for generating the issue.  But first try upgrading.


  parent reply	other threads:[~2021-05-24 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-24 19:14 Phil
     [not found] ` <ba2652d0-4561-4680-9e5f-46bbd7b6dc09n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-24 20:39   ` John MacFarlane [this message]
     [not found]     ` <m2bl8zooh1.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-05-24 20:51       ` Phil

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=m2bl8zooh1.fsf@MacBook-Pro.hsd1.ca.comcast.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=phillipruppert-Re5JQEeQqe8AvxtiuMwx3w@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).