From 98c7ada061c61555331e224a701c83cdbc26c68e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 20 Jul 2014 21:43:54 -0700 Subject: HTML reader: parse Div and Span elements even without `--parse-raw`. Closes #1434. --- src/Text/Pandoc/Readers/HTML.hs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs index cedbb8c9e..2414dfbf7 100644 --- a/src/Text/Pandoc/Readers/HTML.hs +++ b/src/Text/Pandoc/Readers/HTML.hs @@ -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 -- cgit v1.2.3