textile reader now imports import Text.Pandoc.Parsing
This commit is contained in:
parent
d532c72c5b
commit
75fa22c300
1 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,7 @@ module Text.Pandoc.Readers.Textile (
|
||||||
) where
|
) where
|
||||||
import Text.Pandoc.Definition
|
import Text.Pandoc.Definition
|
||||||
import Text.Pandoc.Shared
|
import Text.Pandoc.Shared
|
||||||
|
import Text.Pandoc.Parsing
|
||||||
import Text.Pandoc.Readers.HTML ( htmlTag, htmlEndTag )
|
import Text.Pandoc.Readers.HTML ( htmlTag, htmlEndTag )
|
||||||
import Text.ParserCombinators.Parsec
|
import Text.ParserCombinators.Parsec
|
||||||
import Data.Char ( digitToInt )
|
import Data.Char ( digitToInt )
|
||||||
|
@ -91,7 +92,7 @@ block = choice blockParsers <?> "block"
|
||||||
-- | Code Blocks in Textile are between <pre> and </pre>
|
-- | Code Blocks in Textile are between <pre> and </pre>
|
||||||
codeBlock :: GenParser Char ParserState Block
|
codeBlock :: GenParser Char ParserState Block
|
||||||
codeBlock = try $ do
|
codeBlock = try $ do
|
||||||
htmlTag "pre"
|
htmlTag False "pre"
|
||||||
content <- manyTill anyChar (try $ htmlEndTag "pre" >> blockBreak)
|
content <- manyTill anyChar (try $ htmlEndTag "pre" >> blockBreak)
|
||||||
return $ CodeBlock ("",[],[]) content
|
return $ CodeBlock ("",[],[]) content
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue