You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use two commands defined in your document without a space between them, pandoc gets stuck in latex mode (ignoring markdown formatting). Using built in latex commands does not cause the issue.I'm running pandoc 2.1.3 on Arch Linux.
\newcommand{\one}[1]{#1}
\newcommand{\two}[1]{#1}
Formatting *is* working **here**. But sticking \one{two }\two{comands} together *breaks* formatting.
This applies also to:
- Lists
- `Code`
- Code Blocks
``` shell
ls -l /
```
I think I see the problem. Line 258 of LaTeX reader, in rawLaTeXParser:
rawstring <- takeP (T.length (untokenize raw))
raw here is the parsed token string AFTER macro expansion, but we're taking tokens from the input before macro expansion, so we take too many tokens. At least that's my current theory. We should be able to use source positions in the tokens instead.
If you use two commands defined in your document without a space between them, pandoc gets stuck in latex mode (ignoring markdown formatting). Using built in latex commands does not cause the issue.I'm running pandoc 2.1.3 on Arch Linux.
test.pdf
The text was updated successfully, but these errors were encountered: