Don't require strict HTML blocks to begin at left margin.
Technically this is required, according to the mardkown syntax
document, but Markdown.pl and other markdown processors are more
liberal.
commit1fb1cfb67014f93e96bdc379951b41a9d6ba27c6
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateTue 24 Jul 2012, 21:41 (14 years ago)
parent3084369
src/Text/Pandoc/Readers/Markdown.hs+1−3
@@ -717,9 +717,7 @@ htmlBlock = try $ do
717717 return $ RawBlock "html" $ first ++ finalSpace ++ finalNewlines
718718
719719strictHtmlBlock :: Parser [Char] ParserState [Char]
720−strictHtmlBlock = do
721− failUnlessBeginningOfLine
722− htmlInBalanced (not . isInlineTag)
720+strictHtmlBlock = htmlInBalanced (not . isInlineTag)
723721
724722rawVerbatimBlock :: Parser [Char] ParserState String
725723rawVerbatimBlock = try $ do