texmath
texmath copied to clipboard
handling of soft breaks in omml input
Conversion command
E:\pandoc-2.7-windows-i386\pandoc.exe -s 2.docx -t markdown-smart --wrap=none -o example35.md
After conversion, only the two display style formula left, all other text was striped out.
One could test the problem with 2.docx
I think it is the downward pointing arrow that caused the problem, the arrow is in formula format , because if I removed the downward pointing arrow, the conversion went well .


The downward pointing arrow also caused the following problem
Conversion command
E:\pandoc-2.7-windows-i386\pandoc.exe -s a.docx -t markdown-smart --wrap=none -o example35.md
Wong result :

One could test the problem with a.docx
That symbol is not a regular new line, but a soft return, and pandoc does not treat it as a new paragraph. If you use a regular return, it'll probably work.
I simplified your formulas and tested it with:
$ pandoc -t native a.docx
[Para [Math DisplayMath "\\left( L - \\epsilon_{1} \\right)"]
,Para [Math DisplayMath "{\\Downarrow \n}\\left( L - \\epsilon_{1} \\right)"]
,Para [Math DisplayMath "{\\Downarrow \n}\\left( L - \\epsilon_{1} \\right)"]]
You can see the soft-breaks as \n in the formula, which are lost in the docx writer
Maybe there's a way texmath can handle this better. Transferring the issue there.
It's a <w:br /> element inside math.