git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: Added updateStrPos in a couple places where needed.
commit9b0bd4ec6f5c9125efb3e36232e6d1f6ac08a728 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 14 Oct 2018, 10:57 (8 years ago) parent2254748
1 file changed+2−1
src/Text/Pandoc/Readers/Markdown.hs+2−1
src/Text/Pandoc/Readers/Markdown.hs+2−1
@@ -1586,6 +1586,7 @@ symbol = do
15861586 <|> try (do lookAhead $ char '\\'
15871587 notFollowedBy' (() <$ rawTeXBlock)
15881588 char '\\')
1589+ updateLastStrPos
15891590 return $ return $ B.str [result]
15901591
15911592-- parses inline code, between n `s and n `s
@@ -1632,7 +1633,7 @@ enclosure c = do
16321633 3 -> three c
16331634 2 -> two c mempty
16341635 1 -> one c mempty
1635− _ -> return (return $ B.str cs)
1636+ _ -> updateLastStrPos >> return (return $ B.str cs)
16361637
16371638ender :: PandocMonad m => Char -> Int -> MarkdownParser m ()
16381639ender c n = try $ do