mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 18:05:48 +00:00
textile reader now imports import Text.Pandoc.Parsing
This commit is contained in:
committed by
John MacFarlane
parent
d532c72c5b
commit
75fa22c300
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user