From 27bd6fb9773ea17359b9c4162a5b84a4ce0cb179 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 30 Sep 2012 14:58:26 -0700 Subject: RST reader: Removed requirement that directives begin at left margin. This was (correctly) not in earlier releases; docutils doesn't make the requirement. --- src/Text/Pandoc/Readers/RST.hs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 6f5633e59..1efaa9231 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -469,7 +469,6 @@ bulletList = B.bulletList . compactify' <$> many1 (listItem bulletListStart) comment :: RSTParser Blocks comment = try $ do - getPosition >>= guard . (==1) . sourceColumn string ".." skipMany1 spaceChar <|> (() <$ lookAhead newline) notFollowedBy' directiveLabel @@ -483,7 +482,6 @@ directiveLabel = map toLower directive :: RSTParser Blocks directive = try $ do - getPosition >>= guard . (==1) . sourceColumn string ".." directive' @@ -712,7 +710,6 @@ targetURI = do substKey :: RSTParser () substKey = try $ do - getPosition >>= guard . (==1) . sourceColumn string ".." skipMany1 spaceChar (alt,ref) <- withRaw $ trimInlines . mconcat -- cgit v1.2.3