aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-05-06 10:59:40 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2017-05-06 11:00:32 +0200
commitda8c153a6872a040440f8853a37f559bb3b26b02 (patch)
tree704c0e00947092cdda83cd74f7e211b072619743 /test/command
parent9f0a80457fb0ab343af651af8c7bc6f9dc467f55 (diff)
downloadpandoc-da8c153a6872a040440f8853a37f559bb3b26b02.tar.gz
Org reader: support macros
Closes: #3401
Diffstat (limited to 'test/command')
-rw-r--r--test/command/3401.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/command/3401.md b/test/command/3401.md
new file mode 100644
index 000000000..99528553a
--- /dev/null
+++ b/test/command/3401.md
@@ -0,0 +1,19 @@
+See #3401 and <http://orgmode.org/manual/Macro-replacement.html>
+
+```
+% pandoc -f org -t native
+#+MACRO: HELLO /Hello, $1/
+{{{HELLO(World)}}}
+^D
+[Para [Emph [Str "Hello,",Space,Str "World"]]]
+```
+
+Inverted argument order
+
+```
+% pandoc -f org -t native
+#+MACRO: A $2,$1
+{{{A(1,2)}}}
+^D
+[Para [Str "2,1"]]
+```