aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-12-31 21:20:56 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2018-12-31 21:20:56 -0800
commitffc2192caffd101666dd6c793631798d7f22878f (patch)
tree88599027ece92d959f9a197c96cea800f1182936 /test/command
parentc8b79b0a04c113e0ea41099b0201576710158a49 (diff)
downloadpandoc-ffc2192caffd101666dd6c793631798d7f22878f.tar.gz
Simplify/fix reading of `--metadata` values on command line.
Previously we used HsYAML's decodeStrict to recognize boolean values (treating everything else as a string). This caused problems relating to hvr/HsYAML#7. We now just check for the recognized boolean values `true|True|TRUE|false|False|FALSE`, and avoid using HsYAML. Closes #5177.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/5177.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command/5177.md b/test/command/5177.md
new file mode 100644
index 000000000..d832780ea
--- /dev/null
+++ b/test/command/5177.md
@@ -0,0 +1,12 @@
+This should not give a "Prelude.read: no parse" error:
+
+```
+% pandoc -M foo=1e -s -t markdown
+hi
+^D
+---
+foo: 1e
+---
+
+hi
+```