git.iko.soy/typeable/pandoc
on master help sign in
add test for --metadata-file
commit5347e9454fae70cd2b534ad8e3c02d1cea8c2d93 authormb21 <mb21@users.noreply.github.com> dateSat 15 Sep 2018, 16:47 (8 years ago) parent6aa5fca
3 files changed+20
pandoc.cabal+1 test/command/yaml-metadata-blocks.md+15 test/command/yaml-metadata.yaml+4
pandoc.cabal+1
@@ -193,6 +193,7 @@ extra-source-files:
193193 test/command/sub-file-chapter-1.tex
194194 test/command/sub-file-chapter-2.tex
195195 test/command/bar.tex
196+ test/command/yaml-metadata.yaml
196197 test/command/3510-subdoc.org
197198 test/command/3510-export.latex
198199 test/command/3510-src.hs
test/command/yaml-metadata-blocks.md+15
@@ -46,3 +46,18 @@ array:
4646Pandoc (Meta {unMeta = fromList [("array",MetaList [MetaMap (fromList [("foo",MetaInlines [Str "bar"])]),MetaMap (fromList [("bool",MetaBool True)])])]})
4747[]
4848```
49+```
50+% pandoc -s -t native --metadata-file command/yaml-metadata.yaml
51+---
52+title: document
53+---
54+^D
55+Pandoc (Meta {unMeta = fromList [("other",MetaInlines [Emph [Str "markdown"],Space,Str "value"]),("title",MetaInlines [Str "document"])]})
56+[]
57+```
58+```
59+% pandoc -s -t native --metadata-file command/yaml-metadata.yaml -M title=cmdline
60+^D
61+Pandoc (Meta {unMeta = fromList [("other",MetaInlines [Emph [Str "markdown"],Space,Str "value"]),("title",MetaString "cmdline")]})
62+[]
63+```
test/command/yaml-metadata.yamlnew file+4
@@ -0,0 +1,4 @@
1+---
2+title: file
3+other: _markdown_ value
4+---