@@ -1487,7 +1487,8 @@ code = try $ do
1488math :: MarkdownParser Inlines
1488math :: MarkdownParser Inlines
1489math = (B.displayMath <$> (mathDisplay >>= applyMacros'))
1489math = (B.displayMath <$> (mathDisplay >>= applyMacros'))
1490− <|> (B.math <$> (mathInline >>= applyMacros'))
1490+ <|> ((B.math <$> (mathInline >>= applyMacros')) <+?>
1491+ ((getOption readerSmart >>= guard) *> apostrophe <* notFollowedBy space))
1492-- Parses material enclosed in *s, **s, _s, or __s.
1493-- Parses material enclosed in *s, **s, _s, or __s.
1493-- Designed to avoid backtracking.
1494-- Designed to avoid backtracking.