From 200ea336418af609fb526ce47755c48e10da0183 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 7 Dec 2010 21:49:10 -0800 Subject: Made --smart work with RST reader. --- src/Text/Pandoc/Readers/RST.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index a39a46117..f9a907f75 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -57,7 +57,7 @@ underlineChars = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~" -- treat these as potentially non-text when parsing inline: specialChars :: [Char] -specialChars = "\\`|*_<>$:[-" +specialChars = "\\`|*_<>$:[-.\"'" -- -- parsing documents @@ -679,7 +679,8 @@ table = gridTable False <|> simpleTable False <|> -- inline :: GenParser Char ParserState Inline -inline = choice [ link +inline = choice [ smartPunctuation inline + , link , str , whitespace , endline -- cgit v1.2.3