@@ -927,7 +927,7 @@ parseInlines = trimInlinesF . mconcat <$> many1 inline
927927
928928-- treat these as potentially non-text when parsing inline:
929929specialChars :: [Char]
930−specialChars = "\"$'()*+-./:<=>[\\]^_{|}~"
930+specialChars = "\"$'()*+-,./:<=>[\\]^_{|}~"
931931
932932
933933whitespace :: OrgParser (F Inlines)
@@ -1205,10 +1205,10 @@ displayMath = return . B.displayMath <$> choice [ rawMathBetween "\\[" "\\]"
12051205 ]
12061206symbol :: OrgParser (F Inlines)
12071207symbol = return . B.str . (: "") <$> (oneOf specialChars >>= updatePositions)
1208− where updatePositions c
1209− | c `elem` emphasisPreChars = c <$ updateLastPreCharPos
1210− | c `elem` emphasisForbiddenBorderChars = c <$ updateLastForbiddenCharPos
1211− | otherwise = return c
1208+ where updatePositions c = do
1209+ when (c `elem` emphasisPreChars) updateLastPreCharPos
1210+ when (c `elem` emphasisForbiddenBorderChars) updateLastForbiddenCharPos
1211+ return c
12121212
12131213emphasisBetween :: Char
12141214 -> OrgParser (F Inlines)