Added test for macros.
This commit is contained in:
parent
3a799f4482
commit
905d194db5
2 changed files with 9 additions and 1 deletions
|
@ -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"] ]
|
||||
|
|
|
@ -100,3 +100,9 @@ Explanation of examples (@foo) and (@bar).
|
|||
|
||||
(@bar) Third example.
|
||||
|
||||
## Macros
|
||||
|
||||
\newcommand{\tuple}[1]{\langle #1 \rangle}
|
||||
|
||||
$\tuple{x,y}$
|
||||
|
||||
|
|
Loading…
Reference in a new issue