aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-12-07 21:49:10 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-07 21:49:10 -0800
commit200ea336418af609fb526ce47755c48e10da0183 (patch)
treea3688dd0142cd2d1ba541a21df2ca05ccb24a90b /src/Text/Pandoc
parent5e35eb309fddea2ebc683c5cc9a9a1a824a7afd0 (diff)
downloadpandoc-200ea336418af609fb526ce47755c48e10da0183.tar.gz
Made --smart work with RST reader.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/RST.hs5
1 files changed, 3 insertions, 2 deletions
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