c27ce1e70e
For example: `\def\foo#1[#2]{#1 and #2}`. Closes #4768. Also fixes #4771. API change: in Text.Pandoc.Readers.LaTeX.Types, new type ArgSpec added. Second parameter of Macro constructor is now `[ArgSpec]` instead of `Int`.
7 lines
116 B
Markdown
7 lines
116 B
Markdown
```
|
|
% pandoc -f latex -t plain
|
|
\def\foo#1!#2!#3{#1 or #2 and #3}
|
|
\foo aa!bbb bbb!{ccc}
|
|
^D
|
|
aa or bbb bbb and ccc
|
|
```
|