aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Textile.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-10-05 10:23:15 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-10-05 10:23:15 -0700
commitf232034ab0a97c71643901a116ed1c55c5fb7f29 (patch)
tree2980070a1eb522fa081b2da6416057d66f58251d /src/Text/Pandoc/Readers/Textile.hs
parentb1dafe8750debfb375fd9b40294bc9c0fa8e11e0 (diff)
downloadpandoc-f232034ab0a97c71643901a116ed1c55c5fb7f29.tar.gz
Textile reader: Implemented comment blocks.
Diffstat (limited to 'src/Text/Pandoc/Readers/Textile.hs')
-rw-r--r--src/Text/Pandoc/Readers/Textile.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs
index 0d516f545..922ebc44e 100644
--- a/src/Text/Pandoc/Readers/Textile.hs
+++ b/src/Text/Pandoc/Readers/Textile.hs
@@ -125,6 +125,7 @@ blockParsers = [ codeBlock
, header
, blockQuote
, hrule
+ , commentBlock
, anyList
, rawHtmlBlock
, rawLaTeXBlock'
@@ -136,6 +137,12 @@ blockParsers = [ codeBlock
block :: Parser [Char] ParserState Block
block = choice blockParsers <?> "block"
+commentBlock :: Parser [Char] ParserState Block
+commentBlock = try $ do
+ string "###."
+ manyTill anyLine blanklines
+ return Null
+
codeBlock :: Parser [Char] ParserState Block
codeBlock = codeBlockBc <|> codeBlockPre