aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-12-14 18:22:20 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-14 18:23:26 -0800
commit128cf46089f5a2fa688097f596563ecefd9c466b (patch)
tree8d521adc420fd46257555cacc7678bf8c2373003 /src/Text/Pandoc
parent2e728df7569853fdd3b496c70654b0a8eae7f1ec (diff)
downloadpandoc-128cf46089f5a2fa688097f596563ecefd9c466b.tar.gz
Fixed regression in parsing _emph_
There was a bug in parsing '_emph_, ...': when followed by a comma, underscore emphasis did not register. (Thanks to gwern for pointing this out.) This bug was introduced by the change in c66921f2acea456af527b93e2daa1d8594798642
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 51c61103b..be1fdc5d0 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -1059,7 +1059,7 @@ strChar = noneOf (specialChars ++ " \t\n")
str :: GenParser Char ParserState Inline
str = do
a <- strChar
- as <- many (strChar <|> (try $ char '_' >>~ lookAhead strChar))
+ as <- many (strChar <|> (try $ char '_' >>~ lookAhead alphaNum))
let result = a:as
state <- getState
let spacesToNbr = map (\c -> if c == ' ' then '\160' else c)