1784161946
They are now ignored if the corresponding command or environment is already defined. Closes #5635.
312 B
312 B
% pandoc -f latex -t plain
\providecommand{\test}{foo}
\providecommand{\test}{bar}
The value is: \test
^D
The value is: foo
% pandoc -f latex -t plain
\provideenvironment{test}{startfoo}{stopfoo}
\provideenvironment{test}{startbar}{stopbar}
\begin{test}
Hi
\end{test}
^D
startfoo Hi stopfoo