diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-10-31 10:48:13 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-10-31 10:57:20 -0700 |
commit | 556c6c2c6ded6da4e8fd28e5f57fb55df8625373 (patch) | |
tree | c5bc5c5804d08aab009f45a4d8d540bd3d4c1b8a /src/Text/Pandoc/Writers | |
parent | 81610144f94a99dc0156abeffea66ffd7aa808b7 (diff) | |
download | pandoc-556c6c2c6ded6da4e8fd28e5f57fb55df8625373.tar.gz |
Markdown reader: make sure fenced div closers work in lists.
Previously the following failed:
::: {.class}
1. one
2. two
:::
and you needed a blank line before the closing `:::`.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/Markdown.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index c109385d8..a1f30cb0e 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -402,7 +402,7 @@ blockToMarkdown' opts (Div attrs ils) = do _ | isEnabled Ext_fenced_divs opts && attrs /= nullAttr -> nowrap (text ":::" <+> attrsToMarkdown attrs) $$ - contents $$ + chomp contents $$ text ":::" <> blankline | isEnabled Ext_native_divs opts || (isEnabled Ext_raw_html opts && |