3876f15b45
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.
49 lines
846 B
Markdown
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" ] ] ]
|
|
)
|
|
]
|
|
}
|
|
[]
|
|
```
|
|
|