From ccf4e23ee12011e4c36b1f93e4f7a4d653a86a53 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 4 Feb 2019 10:22:02 -0800 Subject: 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. --- test/command/5271.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/command/5271.md (limited to 'test') 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."]])]}) +[] +``` -- cgit v1.2.3