diff options
| author | John MacFarlane <[email protected]> | 2022-08-24 09:35:25 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-08-24 09:36:13 -0700 |
| commit | 488ad80a20e71db187291ec32fd96c85814bf848 (patch) | |
| tree | bb69c91775bc6ac37538e63cfaaea727fecaa86c /test | |
| parent | 373a3255a0644dd6bf6ac978fa5e70be63d4ce2a (diff) | |
LaTeX reader: handle `##` macro arguments properly.
These turn into regular `#` arguments when expanded.
Closes #8243.
Diffstat (limited to 'test')
| -rw-r--r-- | test/command/8243.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/command/8243.md b/test/command/8243.md new file mode 100644 index 000000000..87c800973 --- /dev/null +++ b/test/command/8243.md @@ -0,0 +1,23 @@ +``` +% pandoc -f latex +\newenvironment{topics}{ +\newcommand{\topic}[2]{ \item{##1 / ##2} } +Topics: +\begin{itemize} +} +{ +\end{itemize} +} + +\begin{topics} +\topic{Foo}{Bar} +\topic{Baz}{Bim} +\end{topics} +^D +<p>Topics:</p> +<ul> +<li><p><span>Foo / Bar</span></p></li> +<li><p><span>Baz / Bim</span></p></li> +</ul> +``` + |
