diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-08-11 16:36:54 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-08-11 16:36:54 -0700 |
commit | 872fd2fb9c6966024618f89dfa136aeac25ac9bc (patch) | |
tree | 82fa7dc5075003a221bdb2e00545f70e0ce96843 /src | |
parent | 78d3a0fb9d3f862d5e2b61bd45434f7af9cd9f18 (diff) | |
download | pandoc-872fd2fb9c6966024618f89dfa136aeac25ac9bc.tar.gz |
Revert "Implemented Ext_markdown_attribute."
This reverts commit 78d3a0fb9d3f862d5e2b61bd45434f7af9cd9f18.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Options.hs | 1 | ||||
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 11 |
2 files changed, 1 insertions, 11 deletions
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs index 6d235e7a8..f7f07a939 100644 --- a/src/Text/Pandoc/Options.hs +++ b/src/Text/Pandoc/Options.hs @@ -64,7 +64,6 @@ data Extension = Ext_footnotes | Ext_delimited_code_blocks | Ext_inline_code_attributes | Ext_markdown_in_html_blocks - | Ext_markdown_attribute | Ext_escaped_line_breaks | Ext_autolink_code_spans | Ext_fancy_lists 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 |