aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-21 22:44:18 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-21 22:44:18 -0700
commitfa2c008ae5edf36b5345d56e859d0b5cf7a14e69 (patch)
tree89b9b11afef2add55d43151b6338500ee95432a3 /tests
parent6a96090f7832f8f0b51c6812ab9b89cf0b1dfb7e (diff)
downloadpandoc-fa2c008ae5edf36b5345d56e859d0b5cf7a14e69.tar.gz
Fix regression: allow HTML comments containing `--`.
Technically this isn't allowed in an HTML comment, but we've always allowed it, and so do most other implementations. It is handy if e.g. you want to put command line arguments in HTML comments.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Readers/Markdown.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Markdown.hs b/tests/Tests/Readers/Markdown.hs
index 17bfd332e..a5425ffb3 100644
--- a/tests/Tests/Readers/Markdown.hs
+++ b/tests/Tests/Readers/Markdown.hs
@@ -176,6 +176,9 @@ tests = [ testGroup "inline code"
, "invalid tag (issue #1820" =:
"</ div></.div>" =?>
para (text "</ div></.div>")
+ , "technically invalid comment" =:
+ "<!-- pandoc --help -->" =?>
+ rawBlock "html" "<!-- pandoc --help -->"
]
, "unbalanced brackets" =:
"[[[[[[[[[[[[[[[hi" =?> para (text "[[[[[[[[[[[[[[[hi")