From 37c6f6adfe5f292bccd42046842e5cb2cc7484d0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 20 Sep 2018 11:15:03 -0700 Subject: RST reader: fix bug with internal link targets. They were gobbling up indented content underneath. Closes #4919. --- src/Text/Pandoc/Readers/RST.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 274c9da7a..28fa7b83e 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -1090,7 +1090,7 @@ referenceKey = do targetURI :: Monad m => ParserT [Char] st m [Char] targetURI = do skipSpaces - optional newline + optional $ try $ newline >> notFollowedBy blankline contents <- trim <$> many1 (satisfy (/='\n') <|> try (newline >> many1 spaceChar >> noneOf " \t\n")) -- cgit v1.2.3