git.iko.soy/typeable/pandoc
on master help sign in
Consolidated 'text', 'special', and 'inline' into 'inline'.
9b3d5d8fiddlosopher
src/Text/Pandoc/Readers/Markdown.hs+23−8
@@ -710,14 +710,29 @@ table = do
710-- inline
710-- inline
711--
711--
712
712
713+inline = choice [ rawLaTeXInline'
714+ , escapedChar
715+ , entity
716+ , noteRef
717+ , inlineNote
718+ , link
719+ , referenceLink
720+ , rawHtmlInline'
721+ , autoLink
722+ , image
723+ , escapedChar
724+ , math
725+ , strong
726+ , emph
713−text = choice [ escapedChar, math, strong, emph, smartPunctuation,
727+ , smartPunctuation
728+ , code
714− code, ltSign, symbol,
729+ , ltSign
730+ , symbol
731+ , str
732+ , linebreak
733+ , tabchar
715− str, linebreak, tabchar, whitespace, endline ] <?> "text"
734+ , whitespace
716−
735+ , endline ] <?> "inline"
717−inline = choice [ rawLaTeXInline', escapedChar, entity, special, text ] <?> "inline"
718−
719−special = choice [ noteRef, inlineNote, link, referenceLink, rawHtmlInline',
720− autoLink, image ] <?> "link, inline html, note, or image"
721
736
722escapedChar = try $ do
737escapedChar = try $ do
723 char '\\'
738 char '\\'