This gives behavior that comes closer to LaTeX's own. If we don't absorb the following newline, it gets interpreted as a SoftBreak, inserting a spurious space in some contexts.
412 B
412 B
% pandoc -f markdown -t native
\begin{proof}
\newcommand{\x}{\left.\right.}
\x
\end{proof}
1234567890abcdefghi
[\*\a](x)
^D
[ RawBlock
(Format "tex")
"\\begin{proof}\n\\newcommand{\\x}{\\left.\\right.}\n\\left.\\right.\\end{proof}"
, Para [ Str "1234567890abcdefghi" ]
, Para
[ Link
( "" , [] , [] )
[ Str "*" , RawInline (Format "tex") "\\a" ]
( "x" , "" )
]
]