okanakov
okanakov
Tried the solution suggested by @lierdakil [above](https://github.com/lierdakil/pandoc-crossref/issues/250#issuecomment-596109229). Command line is ```shell pandoc -f latex -t markdown --lua-filter texref_orig.lua mwe.tex -o out.markdown ``` where the filter script `texref_orig.lua` is as given...
Tried converting latex to docx in a single invocation of pandoc, as suggested by @lierdakil [above](https://github.com/lierdakil/pandoc-crossref/issues/250#issuecomment-596109229), but unsuccessfully. The command line is ```shell pandoc mwe.tex -f latex --lua-filter texref.lua --filter...
Notice that the lua script suggested [above](https://github.com/lierdakil/pandoc-crossref/issues/250#issuecomment-1169233033) replaces each `\label{...}` command in a math environment with an empty string, which may result in an empty line. This destroys LaTeX code,...
I suggest to modify the lua filter script in order to prevent producing empty lines, see [my comment in #250](https://github.com/lierdakil/pandoc-crossref/issues/250#issuecomment-1856072285).