Properly handle script blocks in strict mode.
(That is, markdown-markdown_in_html_blocks.)
Previously a spurious `<p>` tag was being added.
Closes #1093.
commit2f00f5c7c22ef879df3a21f1c3da967d106628e9
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateSun 15 Dec 2013, 12:27 (13 years ago)
parent3b79246
src/Text/Pandoc/Readers/Markdown.hs+3−1
@@ -902,7 +902,9 @@ plain = fmap B.plain . trimInlinesF . mconcat <$> many1 inline
902902--
903903
904904htmlElement :: MarkdownParser String
905−htmlElement = strictHtmlBlock <|> liftM snd (htmlTag isBlockTag)
905+htmlElement = rawVerbatimBlock
906+ <|> strictHtmlBlock
907+ <|> liftM snd (htmlTag isBlockTag)
906908
907909htmlBlock :: MarkdownParser (F Blocks)
908910htmlBlock = do