aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-05-30 02:25:30 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-05-30 02:29:43 +0300
commit1100bfc0e67954760c0c1767018404bf0129dd01 (patch)
tree9d7211b8206690daca2c16da568db843106ca6f8 /test
parentbdf8c01f2c0e3d3cd549c19b118c332cd48eeeb0 (diff)
downloadpandoc-1100bfc0e67954760c0c1767018404bf0129dd01.tar.gz
Muse reader: parse image URLs without "guard" and "takeExtension"
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Readers/Muse.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index ddfedbff4..6b4e0fdbd 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -194,6 +194,9 @@ tests =
, "Image" =:
"[[image.jpg]]" =?>
para (image "image.jpg" "" mempty)
+ , "Closing bracket is not allowed in image filename" =:
+ "[[foo]bar.jpg]]" =?>
+ para (text "[[foo]bar.jpg]]")
, "Image with description" =:
"[[image.jpg][Image]]" =?>
para (image "image.jpg" "" (text "Image"))