git.iko.soy/typeable/pandoc
on master help sign in
Textile reader: Turn on smart punctuation by default.
commit4bf9d362d22fcd7b51da7bd14a6a5b63533706c6 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 3 Dec 2010, 22:52 (16 years ago) parent0356ad4
1 file changed+2−2
src/Text/Pandoc/Readers/Textile.hs+2−2
src/Text/Pandoc/Readers/Textile.hs+2−2
@@ -91,8 +91,8 @@ specialChars = "\\[]<>*#_@~-+^&,.;:!?|\"'%"
9191-- | Generate a Pandoc ADT from a textile document
9292parseTextile :: GenParser Char ParserState Pandoc
9393parseTextile = do
94− -- textile allows raw HTML
95− updateState (\state -> state { stateParseRaw = True })
94+ -- textile allows raw HTML and does smart punctuation by default
95+ updateState (\state -> state { stateParseRaw = True, stateSmart = True })
9696 many blankline
9797 blocks <- parseBlocks
9898 return $ Pandoc (Meta [Str ""] [[Str ""]] [Str ""]) blocks -- FIXME