Added test for macros.

This commit is contained in:
John MacFarlane 2010-10-26 20:03:02 -07:00
parent 3a799f4482
commit 905d194db5
2 changed files with 9 additions and 1 deletions

View file

@ -39,4 +39,6 @@ Pandoc (Meta {docTitle = [Str "Title",Space,Str "spanning",Space,Str "multiple",
, Para [Str "Explanation",Space,Str "of",Space,Str "examples",Space,Str "(",Str "2",Str ")",Space,Str "and",Space,Str "(",Str "3",Str ")",Str "."]
, OrderedList (3,Example,TwoParens)
[ [ Plain [Str "Third",Space,Str "example",Str "."] ]
] ]
]
, Header 2 [Str "Macros"]
, Para [Math InlineMath "\\langle x,y \\rangle"] ]

View file

@ -100,3 +100,9 @@ Explanation of examples (@foo) and (@bar).
(@bar) Third example.
## Macros
\newcommand{\tuple}[1]{\langle #1 \rangle}
$\tuple{x,y}$