Textile reader: Turn on smart punctuation by default.
This commit is contained in:
parent
0356ad4de6
commit
4bf9d362d2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue