git.iko.soy/typeable/pandoc
on master help sign in
RST reader: skip blanklines at beginning, not all leading spaces.

If you skip all spaces, it becomes impossible to start with a blockquote.

commit7f5130709b6b863cbf2861890292c5662ba6994f authorJohn MacFarlane <jgm@berkeley.edu> dateFri 28 Jan 2011, 12:30 (16 years ago) parent8c43557
1 file changed+1−1
src/Text/Pandoc/Readers/RST.hs+1−1
src/Text/Pandoc/Readers/RST.hs+1−1
@@ -91,7 +91,7 @@ titleTransform blocks = (blocks, [])
9191
9292parseRST :: GenParser Char ParserState Pandoc
9393parseRST = do
94− spaces -- skip blanks at beginning of file
94+ optional blanklines -- skip blank lines at beginning of file
9595 startPos <- getPosition
9696 -- go through once just to get list of reference keys and notes
9797 -- docMinusKeys is the raw document with blanks where the keys were...