textile reader now imports import Text.Pandoc.Parsing

This commit is contained in:
paul.rivier
2010-12-03 23:10:50 -08:00
committed by John MacFarlane
parent d532c72c5b
commit 75fa22c300
+2 -1
View File
@@ -45,6 +45,7 @@ module Text.Pandoc.Readers.Textile (
) where
import Text.Pandoc.Definition
import Text.Pandoc.Shared
import Text.Pandoc.Parsing
import Text.Pandoc.Readers.HTML ( htmlTag, htmlEndTag )
import Text.ParserCombinators.Parsec
import Data.Char ( digitToInt )
@@ -91,7 +92,7 @@ block = choice blockParsers <?> "block"
-- | Code Blocks in Textile are between <pre> and </pre>
codeBlock :: GenParser Char ParserState Block
codeBlock = try $ do
htmlTag "pre"
htmlTag False "pre"
content <- manyTill anyChar (try $ htmlEndTag "pre" >> blockBreak)
return $ CodeBlock ("",[],[]) content