The tokenizer represents a backslash followed by a newline as a `CtrlSeq " "` token whose text contains the newline. Its end position was advanced with `incSourceColumn`, which does not reset the column when the text contains a newline. As a result, `rawLaTeXParser` computed an end position on the wrong line, and raw LaTeX inline or block content containing such a line break was parsed a second time after the raw span. Use a position advance that accounts for newlines. Closes #12051.
134 B
134 B
% pandoc -f markdown -t native
\itshape
hello\
world
^D
[ Para
[ RawInline (Format "tex") "\\itshape\nhello\\\nworld" ]
]