aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-11-11 10:17:53 -0500
committerJohn MacFarlane <jgm@berkeley.edu>2017-11-11 10:17:53 -0500
commitfb5ba1bb00a0d328db568952925f543b2bd8b584 (patch)
tree55d10d99dcad401cb301d994801b862fc7852e34 /test
parentf501ad031d4afb653d00c2a88856c903ed87d9b5 (diff)
downloadpandoc-fb5ba1bb00a0d328db568952925f543b2bd8b584.tar.gz
Fixed YAML metadata with "chomp" (`|-`).
Previously if a YAML block under `|-` contained a blank line, pandoc would not parse it as metadata.
Diffstat (limited to 'test')
-rw-r--r--test/command/yaml-with-chomp.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command/yaml-with-chomp.md b/test/command/yaml-with-chomp.md
new file mode 100644
index 000000000..d4c4f7cfd
--- /dev/null
+++ b/test/command/yaml-with-chomp.md
@@ -0,0 +1,12 @@
+```
+% pandoc -s -t native
+---
+ml: |-
+ TEST
+
+ BLOCK
+...
+^D
+Pandoc (Meta {unMeta = fromList [("ml",MetaBlocks [Para [Str "TEST"],Plain [Str "BLOCK"]])]})
+[]
+```