\middle| in markdown formula renders in Docx incorrectly
mariohuq opened this issue · 2 comments
mariohuq commented
Pandoc version:
>pandoc -v
pandoc 2.13
Compiled with pandoc-types 1.22, texmath 0.12.2, skylighting 0.10.5,
citeproc 0.3.0.9, ipynb 0.1.0.1
Windows version: Windows 10 20H2 (OS Build 19042.928)
Input: Proofs.md:
$$
\left( \begin{matrix}
0 & 0 \\
0 & 0 \\
\end{matrix} \middle| \begin{matrix}
1 & 0 \\
0 & 1 \\
\end{matrix} \right)
$$
Actual output: Proofs.docx:
Expected output: Proofs.docx:
Command used:
pandoc "Proofs.md" -oProofs.docx
jgm commented
Moving to texmath (the library we use to do math conversions).
jgm commented
The reader is handling this well. The omml writer seems to be ignoring the fact that "|" is a delimiter matching the ()s in the array. The clause for EDelimited in the OMML writer could use some attention.