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`.
116 B
116 B
% 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