git.iko.soy/typeable/pandoc
on rc/2.8.1 help sign in
typeable/pandoc/test/command/yaml-metadata-blocks.md
63 lines 1.8 kB history raw
1```
2% pandoc -s -t native
3---
4foobar_: this should be ignored
5foo:
6 bar_: as should this
7---
8^D
9Pandoc (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
18int: 7
19float: 1.5
20scientific: 3.7e-5
21bool: true
22more: False
23nothing: null
24emtpy: []
25nested:
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
35Pandoc (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---
41array:
42 - foo: bar
43 - bool: True
44---
45^D
46Pandoc (Meta {unMeta = fromList [("array",MetaList [MetaMap (fromList [("foo",MetaInlines [Str "bar"])]),MetaMap (fromList [("bool",MetaBool True)])])]})
47[]
48```
49```
50% pandoc -s -t native --metadata-file command/yaml-metadata.yaml
51---
52title: document
53---
54^D
55Pandoc (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
61Pandoc (Meta {unMeta = fromList [("other",MetaInlines [Emph [Str "markdown"],Space,Str "value"]),("title",MetaString "cmdline")]})
62[]
63```