mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 10:16:32 +00:00
Added test for macros.
This commit is contained in:
@@ -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}$
|
||||
|
||||
|
||||
Reference in New Issue
Block a user