mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 05:05:53 +00:00
If `\cL` is defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`,
then `\til\cL` should expand to `\tilde{\mathcal{L}}`, but pandoc
was expanding it to `\tilde\mathcal{L}`. This is fixed by
parsing the arguments in "verbatim mode" when the macro expands
arguments at the point of use.
Closes #6796.
17 lines
239 B
Markdown
17 lines
239 B
Markdown
```
|
|
% pandoc -f latex -t markdown
|
|
\newcommand{\cL}{\mathcal{L}}
|
|
\newcommand{\til}[1]{\tilde{#1}}
|
|
|
|
$$\til\cL$$
|
|
|
|
\newcommand{\mc}[1]{\mathcal{#1}}
|
|
\newcommand{\dL}{\mc{L}}
|
|
|
|
$$\til\dL$$
|
|
^D
|
|
$$\tilde{\mathcal{L}}$$
|
|
|
|
$$\tilde{\mathcal{L}}$$
|
|
```
|