diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-07-21 22:44:18 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-07-21 22:44:18 -0700 |
commit | fa2c008ae5edf36b5345d56e859d0b5cf7a14e69 (patch) | |
tree | 89b9b11afef2add55d43151b6338500ee95432a3 /tests | |
parent | 6a96090f7832f8f0b51c6812ab9b89cf0b1dfb7e (diff) | |
download | pandoc-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.hs | 3 |
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") |