@@ -614,7 +614,7 @@ displayMath = return . B.displayMath <$> choice [ rawMathBetween "\\[" "\\]"
616updatePositions :: Char
616updatePositions :: Char
617− -> OrgParser (Char)
617+ -> OrgParser Char
618updatePositions c = do
618updatePositions c = do
619 when (c `elem` emphasisPreChars) updateLastPreCharPos
619 when (c `elem` emphasisPreChars) updateLastPreCharPos
620 when (c `elem` emphasisForbiddenBorderChars) updateLastForbiddenCharPos
620 when (c `elem` emphasisForbiddenBorderChars) updateLastForbiddenCharPos
@@ -637,7 +637,9 @@ verbatimBetween :: Char
637 -> OrgParser String
637 -> OrgParser String
638verbatimBetween c = try $
638verbatimBetween c = try $
639 emphasisStart c *>
639 emphasisStart c *>
640− many1TillNOrLessNewlines 1 (noneOf "\n\r") (emphasisEnd c)
640+ many1TillNOrLessNewlines 1 verbatimChar (emphasisEnd c)
642+ verbatimChar = noneOf "\n\r" >>= updatePositions
642-- | Parses a raw string delimited by @c@ using Org's math rules
644-- | Parses a raw string delimited by @c@ using Org's math rules
643mathStringBetween :: Char
645mathStringBetween :: Char