pandoc/test/command/3755.md
John MacFarlane 3876f15b45 Ensure that metadata values w/o trailing newlines are...
parsed as inlines, as the manual states.

Previously, they were parsed as inlines if they would
otherwise have been a single Plain or Para, but otherwise
left unchanged.  This led to some quirky results (e.g. #8143).
We now use the general function `blocksToInlines` from T.P.Shared.
2022-06-22 23:09:51 -07:00

49 lines
846 B
Markdown

```
% pandoc -t native -s
---
title: 'Titel'
date: '22. Juni 2017'
---
^D
Pandoc
Meta
{ unMeta =
fromList
[ ( "date"
, MetaInlines
[ Str "22." , Space , Str "Juni" , Space , Str "2017" ]
)
, ( "title" , MetaInlines [ Str "Titel" ] )
]
}
[]
```
```
% pandoc -t native -s
---
title: "<div>foo</div>\n"
date: |
22. Juni 2017
---
^D
Pandoc
Meta
{ unMeta =
fromList
[ ( "date"
, MetaBlocks
[ OrderedList
( 22 , Decimal , Period )
[ [ Plain [ Str "Juni" , Space , Str "2017" ] ] ]
]
)
, ( "title"
, MetaBlocks
[ Div ( "" , [] , [] ) [ Plain [ Str "foo" ] ] ]
)
]
}
[]
```