git.iko.soy/typeable/pandoc
on master help sign in
RST reader: Removed requirement that directives begin at left margin.

This was (correctly) not in earlier releases; docutils doesn't make the requirement.

commit27bd6fb9773ea17359b9c4162a5b84a4ce0cb179 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 30 Sep 2012, 14:58 (14 years ago) parentd9f628f
1 file changed−3
src/Text/Pandoc/Readers/RST.hs−3
src/Text/Pandoc/Readers/RST.hs−3
@@ -469,7 +469,6 @@ bulletList = B.bulletList . compactify' <$> many1 (listItem bulletListStart)
469469
470470comment :: RSTParser Blocks
471471comment = try $ do
472− getPosition >>= guard . (==1) . sourceColumn
473472 string ".."
474473 skipMany1 spaceChar <|> (() <$ lookAhead newline)
475474 notFollowedBy' directiveLabel
@@ -483,7 +482,6 @@ directiveLabel = map toLower
483482
484483directive :: RSTParser Blocks
485484directive = try $ do
486− getPosition >>= guard . (==1) . sourceColumn
487485 string ".."
488486 directive'
489487
@@ -712,7 +710,6 @@ targetURI = do
712710
713711substKey :: RSTParser ()
714712substKey = try $ do
715− getPosition >>= guard . (==1) . sourceColumn
716713 string ".."
717714 skipMany1 spaceChar
718715 (alt,ref) <- withRaw $ trimInlines . mconcat