From fb6e5812bce4c71d6ac9a8946f0d69d4c08820de Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 31 Oct 2017 21:13:15 -0700 Subject: Fixed regression in parsing of HTML comments in markdown... and other non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`). The parser stopped at the first `>` character, even if it wasn't the end of the comment. Closes #4019. --- src/Text/Pandoc/Readers/HTML.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs index 8d37deb26..915fa852f 100644 --- a/src/Text/Pandoc/Readers/HTML.hs +++ b/src/Text/Pandoc/Readers/HTML.hs @@ -1172,8 +1172,9 @@ htmlTag f = try $ do case next of TagComment s | "" stripComments <- getOption readerStripComments if stripComments then return (next, "") -- cgit v1.2.3