diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2019-02-04 10:22:02 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2019-02-04 10:22:02 -0800 |
| commit | ccf4e23ee12011e4c36b1f93e4f7a4d653a86a53 (patch) | |
| tree | 2052400796cc69df823a20194e7e29d223007c58 /test | |
| parent | ca4d308b60472ab0dfb9186f5c999177ef3137da (diff) | |
| download | pandoc-ccf4e23ee12011e4c36b1f93e4f7a4d653a86a53.tar.gz | |
Markdown reader: add newline when parsing blocks in YAML.
Otherwise last block gets parsed as a Plain rather than
a Para.
This is a regression in pandoc 2.x. This patch restores
pandoc 1.19 behavior.
Closes #5271.
Diffstat (limited to 'test')
| -rw-r--r-- | test/command/5271.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command/5271.md b/test/command/5271.md new file mode 100644 index 000000000..910ea5888 --- /dev/null +++ b/test/command/5271.md @@ -0,0 +1,12 @@ +``` +% pandoc -f markdown -t native -s +--- +abstract: | + This is the abstract. + + It consists of two paragraphs. +... +^D +Pandoc (Meta {unMeta = fromList [("abstract",MetaBlocks [Para [Str "This",Space,Str "is",Space,Str "the",Space,Str "abstract."],Para [Str "It",Space,Str "consists",Space,Str "of",Space,Str "two",Space,Str "paragraphs."]])]}) +[] +``` |
