I am wondering how to properly convert HTML display format formulae into MS Word format with pandoc so that the formulae Unicode markup would be interpeted.  
The minimal HTML file I am trying to convert and the output I get, as well as the output I would expect (which is actually, the output of the direct .md to .docx conversion ), are attached to the post. 

 The command I run is 
`$ pandoc  --to docx -o repro_html_to_word.docx repro_html_to_word.html`

The issue occurs both if the formulae are in inline format (then they are embedded into \(...\) in .docx) and the display format (they get embedded into \[...\], respectively) 
If I convert reversely the .docx document with formulae into .html, the formulae are rendered properly. 

Any help would be very much appreciated. 
---
Background: I am asking this because such conversion could finish my pipeline to output R Markdown documents with stargazer package regression results tables into MS Word. 
AFAIK currently stargazer supports output to TeX and HTML, but not to Word: although MS Word can render standalone HTML files (e. g. it can output the HTML table output), the HTML markup that gets pasted into the Markdown file are rendered improperly and the table is not constructed.  

I am cognizant of some other R packages that target MS Word specifically , notably `flextable`, `gtsummary`, `huxtable`. They however lack the configuration necessary for me and/or require a lot of configuration, and while I am exploring all available options, I would like to wonder whether I could find a walkaround for this obstacle.  

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/82b5190d-a7cc-4cba-9126-d7071c3d7279n%40googlegroups.com.