diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-10-14 10:57:48 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-10-14 10:57:48 -0700 |
commit | 9b0bd4ec6f5c9125efb3e36232e6d1f6ac08a728 (patch) | |
tree | 8f9cf0d727e7f08cb6e038e1fd3bd07bcf4eeed2 /src/Text/Pandoc | |
parent | 225474879c9700a29f4cbab61d42cfa07176e56b (diff) | |
download | pandoc-9b0bd4ec6f5c9125efb3e36232e6d1f6ac08a728.tar.gz |
Markdown reader: Added updateStrPos in a couple places where needed.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index d1ea7a1a5..81c7cbaf9 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -1586,6 +1586,7 @@ symbol = do <|> try (do lookAhead $ char '\\' notFollowedBy' (() <$ rawTeXBlock) char '\\') + updateLastStrPos return $ return $ B.str [result] -- parses inline code, between n `s and n `s @@ -1632,7 +1633,7 @@ enclosure c = do 3 -> three c 2 -> two c mempty 1 -> one c mempty - _ -> return (return $ B.str cs) + _ -> updateLastStrPos >> return (return $ B.str cs) ender :: PandocMonad m => Char -> Int -> MarkdownParser m () ender c n = try $ do |