@@ -710,14 +710,29 @@ table = do
710710-- inline
711711--
712712
713−text = choice [ escapedChar, math, strong, emph, smartPunctuation,
714− code, ltSign, symbol,
715− str, linebreak, tabchar, whitespace, endline ] <?> "text"
716−
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"
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
727+ , smartPunctuation
728+ , code
729+ , ltSign
730+ , symbol
731+ , str
732+ , linebreak
733+ , tabchar
734+ , whitespace
735+ , endline ] <?> "inline"
721736
722737escapedChar = try $ do
723738 char '\\'