@@ -614,7 +614,7 @@ displayMath = return . B.displayMath <$> choice [ rawMathBetween "\\[" "\\]"
614614 ]
615615
616616updatePositions :: Char
617− -> OrgParser (Char)
617+ -> OrgParser Char
618618updatePositions c = do
619619 when (c `elem` emphasisPreChars) updateLastPreCharPos
620620 when (c `elem` emphasisForbiddenBorderChars) updateLastForbiddenCharPos
@@ -637,7 +637,9 @@ verbatimBetween :: Char
637637 -> OrgParser String
638638verbatimBetween c = try $
639639 emphasisStart c *>
640− many1TillNOrLessNewlines 1 (noneOf "\n\r") (emphasisEnd c)
640+ many1TillNOrLessNewlines 1 verbatimChar (emphasisEnd c)
641+ where
642+ verbatimChar = noneOf "\n\r" >>= updatePositions
641643
642644-- | Parses a raw string delimited by @c@ using Org's math rules
643645mathStringBetween :: Char