diff options
| author | John MacFarlane <[email protected]> | 2022-06-22 23:09:51 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-06-22 23:09:51 -0700 |
| commit | 3876f15b453b6fd7a256e41d914fa26a580969e9 (patch) | |
| tree | 5327f3ddb4ceb0b7e8b5ae0bb1162c99ea6872d7 /test/command | |
| parent | e0dea96d6c1e7d6f19040cafd9ffde432de330d8 (diff) | |
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.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/3755.md | 2 | ||||
| -rw-r--r-- | test/command/yaml-with-chomp.md | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/test/command/3755.md b/test/command/3755.md index e89eaec35..a6e473162 100644 --- a/test/command/3755.md +++ b/test/command/3755.md @@ -22,7 +22,7 @@ Pandoc ``` % pandoc -t native -s --- -title: '<div>foo</div>' +title: "<div>foo</div>\n" date: | 22. Juni 2017 --- diff --git a/test/command/yaml-with-chomp.md b/test/command/yaml-with-chomp.md index 98cc76e18..70551f37b 100644 --- a/test/command/yaml-with-chomp.md +++ b/test/command/yaml-with-chomp.md @@ -12,7 +12,13 @@ Pandoc { unMeta = fromList [ ( "ml" - , MetaBlocks [ Para [ Str "TEST" ] , Plain [ Str "BLOCK" ] ] + , MetaInlines + [ Str "TEST" + , Space + , Str "\182" + , Space + , Str "BLOCK" + ] ) ] } |
