git.iko.soy/typeable/pandoc
on master help sign in
add test yaml-metadata-blocks.md
commitbd5500ba7f80632143e41a5fc70b29f9722d5f6c authormb21 <mb21@users.noreply.github.com> dateSat 15 Sep 2018, 12:09 (8 years ago) parent2bd5ba2
1 file changed+48
test/command/yaml-metadata-blocks.md+48
test/command/yaml-metadata-blocks.mdnew file+48
@@ -0,0 +1,48 @@
1+```
2+% pandoc -s -t native
3+---
4+foobar_: this should be ignored
5+foo:
6+ bar_: as should this
7+---
8+^D
9+Pandoc (Meta {unMeta = fromList [("foo",MetaMap (fromList []))]})
10+[]
11+```
12+```
13+% pandoc -s -t native
14+---
15+# For precedence, see multiple-metadata-blocks.md and vars-and-metadata.md
16+# For Bools, see also 4819.md
17+# For Multiline strings, see yaml-with-chomp.md
18+int: 7
19+float: 1.5
20+scientific: 3.7e-5
21+bool: true
22+more: False
23+nothing: null
24+emtpy: []
25+nested:
26+ int: 8
27+ float: 2.5
28+ bool: true
29+ more: False
30+ nothing: null
31+ emtpy: []
32+ scientific: 3.7e-5
33+---
34+^D
35+Pandoc (Meta {unMeta = fromList [("bool",MetaBool True),("emtpy",MetaList []),("float",MetaInlines [Str "1.5"]),("int",MetaInlines [Str "7"]),("more",MetaBool False),("nested",MetaMap (fromList [("bool",MetaBool True),("emtpy",MetaList []),("float",MetaInlines [Str "2.5"]),("int",MetaInlines [Str "8"]),("more",MetaBool False),("nothing",MetaInlines [Str "null"]),("scientific",MetaInlines [Str "3.7e-5"])])),("nothing",MetaInlines [Str "null"]),("scientific",MetaInlines [Str "3.7e-5"])]})
36+[]
37+```
38+```
39+% pandoc -s -t native
40+---
41+array:
42+ - foo: bar
43+ - bool: True
44+---
45+^D
46+Pandoc (Meta {unMeta = fromList [("array",MetaList [MetaMap (fromList [("foo",MetaInlines [Str "bar"])]),MetaMap (fromList [("bool",MetaBool True)])])]})
47+[]
48+```