From 6baacb51bb0dd007edd673f97cd4cff3da06a724 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 22 Apr 2020 23:04:43 -0700 Subject: AsciiDoc writer: add blank line after Div. Closes #6308. --- src/Text/Pandoc/Writers/AsciiDoc.hs | 2 +- test/command/6308.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 test/command/6308.md diff --git a/src/Text/Pandoc/Writers/AsciiDoc.hs b/src/Text/Pandoc/Writers/AsciiDoc.hs index e0ee830de..41f60f92e 100644 --- a/src/Text/Pandoc/Writers/AsciiDoc.hs +++ b/src/Text/Pandoc/Writers/AsciiDoc.hs @@ -299,7 +299,7 @@ blockToAsciiDoc opts (Div (ident,classes,_) bs) = do chomp admonitionBody $$ "====" _ -> blockListToAsciiDoc opts bs - return $ identifier $$ contents + return $ identifier $$ contents $$ blankline -- | Convert bullet list item (list of blocks) to asciidoc. bulletListItemToAsciiDoc :: PandocMonad m diff --git a/test/command/6308.md b/test/command/6308.md new file mode 100644 index 000000000..c584bcd7f --- /dev/null +++ b/test/command/6308.md @@ -0,0 +1,18 @@ +``` +% pandoc -f org -t asciidoc +* Header +#+begin_tip +I'm a tip +#+end_tip + +** Subheader +^D +== Header + +[TIP] +==== +I'm a tip +==== + +=== Subheader +``` -- cgit v1.2.3