aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-08-31 12:55:47 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-08-31 12:55:47 -0700
commit598d3ee23b708634ac8526cdc03291f17803eb2a (patch)
tree6e036cc26c8bf3e5d58982d21dc6bbfa72ce8c9d /tests/Tests
parent6cf9ab78554cdf0a854a26a9386265653c7519ad (diff)
downloadpandoc-598d3ee23b708634ac8526cdc03291f17803eb2a.tar.gz
Markdown reader: better handling of paragraph in div.
Previously text that ended a div would be parsed as Plain unless there was a blank line before the closing div tag. Test case: <div class="first"> This is a paragraph. This is another paragraph. </div> Closes #1591.
Diffstat (limited to 'tests/Tests')
-rw-r--r--tests/Tests/Readers/Markdown.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Tests/Readers/Markdown.hs b/tests/Tests/Readers/Markdown.hs
index 6e64a6f15..b45d94032 100644
--- a/tests/Tests/Readers/Markdown.hs
+++ b/tests/Tests/Readers/Markdown.hs
@@ -266,10 +266,10 @@ tests = [ testGroup "inline code"
, testGroup "lists"
[ "issue #1154" =:
" - <div>\n first div breaks\n </div>\n\n <button>if this button exists</button>\n\n <div>\n with this div too.\n </div>\n"
- =?> bulletList [divWith nullAttr (plain $ text "first div breaks") <>
+ =?> bulletList [divWith nullAttr (para $ text "first div breaks") <>
rawBlock "html" "<button>" <>
plain (text "if this button exists") <>
rawBlock "html" "</button>" <>
- divWith nullAttr (plain $ text "with this div too.")]
+ divWith nullAttr (para $ text "with this div too.")]
]
]