RST reader: skip blanklines at beginning, not all leading spaces.
If you skip all spaces, it becomes impossible to start with a blockquote.
This commit is contained in:
parent
8c435578d6
commit
7f5130709b
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ titleTransform blocks = (blocks, [])
|
||||||
|
|
||||||
parseRST :: GenParser Char ParserState Pandoc
|
parseRST :: GenParser Char ParserState Pandoc
|
||||||
parseRST = do
|
parseRST = do
|
||||||
spaces -- skip blanks at beginning of file
|
optional blanklines -- skip blank lines at beginning of file
|
||||||
startPos <- getPosition
|
startPos <- getPosition
|
||||||
-- go through once just to get list of reference keys and notes
|
-- go through once just to get list of reference keys and notes
|
||||||
-- docMinusKeys is the raw document with blanks where the keys were...
|
-- docMinusKeys is the raw document with blanks where the keys were...
|
||||||
|
|
Loading…
Reference in a new issue