git.iko.soy/typeable/pandoc
on master help sign in
Changed definition of 'emph': italics with '_' must not be followed
c206332fiddlosopher
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -686,7 +686,7 @@ math = try $ do
686 return $ TeX ("$" ++ (joinWithSep " " words) ++ "$")
686 return $ TeX ("$" ++ (joinWithSep " " words) ++ "$")
687
687
688emph = ((enclosed (char '*') (char '*') inline) <|>
688emph = ((enclosed (char '*') (char '*') inline) <|>
689− (enclosed (char '_') (char '_') inline)) >>=
689+ (enclosed (char '_') (char '_' >> notFollowedBy alphaNum) inline)) >>=
690 return . Emph . normalizeSpaces
690 return . Emph . normalizeSpaces
691
691
692strong = ((enclosed (string "**") (try $ string "**") inline) <|>
692strong = ((enclosed (string "**") (try $ string "**") inline) <|>