diff options
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index fbcdeeb14..8a1299de6 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -736,19 +736,10 @@ rawTeXBlock = do spaces return $ return result -addMarkdownAttribute :: (Tag String, String) -> Parser [Char] ParserState String -addMarkdownAttribute (t,s) = do - (guardDisabled Ext_markdown_attribute >> return s) - <|> case t of - TagOpen x attrs - | "markdown" `elem` map fst attrs -> return s - | otherwise -> return $ renderTags [TagOpen x (("markdown","1"):attrs)] - _ -> return s - rawHtmlBlocks :: Parser [Char] ParserState String rawHtmlBlocks = do htmlBlocks <- many1 $ do blk <- rawVerbatimBlock <|> - (htmlTag isBlockTag >>= addMarkdownAttribute) + liftM snd (htmlTag isBlockTag) sps <- do sp1 <- many spaceChar sp2 <- option "" (blankline >> return "\n") sp3 <- many spaceChar |