aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-25 23:54:30 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-02-25 23:54:30 +0100
commit65c4efeb5924613d7805ec17f9cc4e03fde00531 (patch)
treed3e1e448fe69ec6984f593861879c74798e4a323 /test/command
parent737d954a59fb8a783d4eb6462c9e11b9e1d07402 (diff)
downloadpandoc-65c4efeb5924613d7805ec17f9cc4e03fde00531.tar.gz
Added test case for variables/metadata in Markdown writer.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/vars-and-metadata.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/command/vars-and-metadata.md b/test/command/vars-and-metadata.md
new file mode 100644
index 000000000..c3dc895af
--- /dev/null
+++ b/test/command/vars-and-metadata.md
@@ -0,0 +1,15 @@
+Variables should not leak into metadata in the Markdown writer:
+
+```
+% pandoc -t markdown -Vfoo=1 -Vbar=2 -s
+---
+foo: x
+...
+zib
+^D
+---
+foo: x
+---
+
+zib
+```