git.iko.soy/typeable/pandoc
on master help sign in
Fixed markdown reader to handle "*hi **there***" as a strong nested in an emph.
d271473fiddlosopher
Text/Pandoc/Readers/Markdown.hs+3−2
@@ -719,8 +719,9 @@ math = try $ do
719 char '$'
719 char '$'
720 return $ Math $ joinWithSep " " words
720 return $ Math $ joinWithSep " " words
721
721
722−emph = ((enclosed (char '*') (char '*') inline) <|>
722+emph = ((enclosed (char '*') (notFollowedBy' strong >> char '*') inline) <|>
723+ (enclosed (char '_') (notFollowedBy' strong >> char '_' >>
723− (enclosed (char '_') (char '_' >> notFollowedBy alphaNum) inline)) >>=
724+ notFollowedBy alphaNum) inline)) >>=
724 return . Emph . normalizeSpaces
725 return . Emph . normalizeSpaces
725
726
726strong = ((enclosed (string "**") (try $ string "**") inline) <|>
727strong = ((enclosed (string "**") (try $ string "**") inline) <|>