HTML reader: parse Div and Span elements even without --parse-raw.

Closes #1434.
This commit is contained in:
John MacFarlane 2014-07-20 21:43:54 -07:00
parent b6c769084e
commit 98c7ada061
2 changed files with 1 additions and 3 deletions

View file

@ -201,7 +201,6 @@ pRawTag = do
pDiv :: TagParser Blocks
pDiv = try $ do
getOption readerParseRaw >>= guard
TagOpen _ attr <- lookAhead $ pSatisfy $ tagOpen (=="div") (const True)
contents <- pInTags "div" block
return $ B.divWith (mkAttr attr) contents
@ -429,7 +428,6 @@ pCode = try $ do
pSpan :: TagParser Inlines
pSpan = try $ do
getOption readerParseRaw >>= guard
TagOpen _ attr <- lookAhead $ pSatisfy $ tagOpen (=="span") (const True)
contents <- pInTags "span" inline
return $ B.spanWith (mkAttr attr) contents

File diff suppressed because one or more lines are too long