aboutsummaryrefslogtreecommitdiff
path: root/test/command/yaml-metadata-blocks.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/command/yaml-metadata-blocks.md')
-rw-r--r--test/command/yaml-metadata-blocks.md78
1 files changed, 68 insertions, 10 deletions
diff --git a/test/command/yaml-metadata-blocks.md b/test/command/yaml-metadata-blocks.md
index 0733623dd..d92994b03 100644
--- a/test/command/yaml-metadata-blocks.md
+++ b/test/command/yaml-metadata-blocks.md
@@ -6,8 +6,10 @@ foo:
bar_: as should this
---
^D
-Pandoc (Meta {unMeta = fromList [("foo",MetaMap (fromList []))]})
-[]
+Pandoc
+ Meta
+ { unMeta = fromList [ ( "foo" , MetaMap (fromList []) ) ] }
+ []
```
```
% pandoc -s -t native
@@ -32,8 +34,32 @@ nested:
scientific: 3.7e-5
---
^D
-Pandoc (Meta {unMeta = fromList [("bool",MetaBool True),("empty",MetaList []),("float",MetaInlines [Str "1.5"]),("int",MetaInlines [Str "7"]),("more",MetaBool False),("nested",MetaMap (fromList [("bool",MetaBool True),("empty",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"])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "bool" , MetaBool True )
+ , ( "empty" , MetaList [] )
+ , ( "float" , MetaInlines [ Str "1.5" ] )
+ , ( "int" , MetaInlines [ Str "7" ] )
+ , ( "more" , MetaBool False )
+ , ( "nested"
+ , MetaMap
+ (fromList
+ [ ( "bool" , MetaBool True )
+ , ( "empty" , MetaList [] )
+ , ( "float" , MetaInlines [ Str "2.5" ] )
+ , ( "int" , MetaInlines [ Str "8" ] )
+ , ( "more" , MetaBool False )
+ , ( "nothing" , MetaString "" )
+ , ( "scientific" , MetaInlines [ Str "3.7e-5" ] )
+ ])
+ )
+ , ( "nothing" , MetaString "" )
+ , ( "scientific" , MetaInlines [ Str "3.7e-5" ] )
+ ]
+ }
+ []
```
```
% pandoc -s -t native
@@ -43,8 +69,20 @@ array:
- bool: True
---
^D
-Pandoc (Meta {unMeta = fromList [("array",MetaList [MetaMap (fromList [("foo",MetaInlines [Str "bar"])]),MetaMap (fromList [("bool",MetaBool True)])])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "array"
+ , MetaList
+ [ MetaMap
+ (fromList [ ( "foo" , MetaInlines [ Str "bar" ] ) ])
+ , MetaMap (fromList [ ( "bool" , MetaBool True ) ])
+ ]
+ )
+ ]
+ }
+ []
```
```
% pandoc -s -t native --metadata-file command/yaml-metadata.yaml
@@ -52,12 +90,32 @@ Pandoc (Meta {unMeta = fromList [("array",MetaList [MetaMap (fromList [("foo",Me
title: document
---
^D
-Pandoc (Meta {unMeta = fromList [("other",MetaInlines [Emph [Str "markdown"],Space,Str "value"]),("title",MetaInlines [Str "document"])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "other"
+ , MetaInlines
+ [ Emph [ Str "markdown" ] , Space , Str "value" ]
+ )
+ , ( "title" , MetaInlines [ Str "document" ] )
+ ]
+ }
+ []
```
```
% pandoc -s -t native --metadata-file command/yaml-metadata.yaml -M title=cmdline
^D
-Pandoc (Meta {unMeta = fromList [("other",MetaInlines [Emph [Str "markdown"],Space,Str "value"]),("title",MetaString "cmdline")]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "other"
+ , MetaInlines
+ [ Emph [ Str "markdown" ] , Space , Str "value" ]
+ )
+ , ( "title" , MetaString "cmdline" )
+ ]
+ }
+ []
```