mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Textile reader: Turn on smart punctuation by default.
This commit is contained in:
@@ -91,8 +91,8 @@ specialChars = "\\[]<>*#_@~-+^&,.;:!?|\"'%"
|
||||
-- | Generate a Pandoc ADT from a textile document
|
||||
parseTextile :: GenParser Char ParserState Pandoc
|
||||
parseTextile = do
|
||||
-- textile allows raw HTML
|
||||
updateState (\state -> state { stateParseRaw = True })
|
||||
-- textile allows raw HTML and does smart punctuation by default
|
||||
updateState (\state -> state { stateParseRaw = True, stateSmart = True })
|
||||
many blankline
|
||||
blocks <- parseBlocks
|
||||
return $ Pandoc (Meta [Str ""] [[Str ""]] [Str ""]) blocks -- FIXME
|
||||
|
||||
Reference in New Issue
Block a user