Thank you for the reply. After some thought, I think I know what is going on, and it is my error. I know enough to be dangerous, so please excuse anything that sounds moronic here. I am actually preprocessing the markdown text in a python script and then passing that out of the python script to pandoc command via python's os.system. I'm thinking the dollar signs are getting read as shell variables. On Monday, May 24, 2021 at 3:40:09 PM UTC-5 John MacFarlane wrote: > Phil 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. > -- 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/4e3e37bf-4fd8-4439-ae8f-3ce2b1dc1629n%40googlegroups.com.