pandoc-3.10.1: test/command/6796.md
```
% 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}}$$
```