Skip to content

Commit 2f0975b

Browse files
committed
Merge pull request #295 from takahashim/fixfootnotes
allow footnotes followed by newline without space chars in reST
2 parents 2c15a87 + 724de83 commit 2f0975b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Text/Pandoc/Readers/RST.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ noteBlock = try $ do
526526
string ".."
527527
spaceChar >> skipMany spaceChar
528528
ref <- noteMarker
529-
spaceChar >> skipMany spaceChar
530-
first <- anyLine
529+
first <- (spaceChar >> skipMany spaceChar >> anyLine)
530+
<|> (newline >> return "")
531531
blanks <- option "" blanklines
532532
rest <- option "" indentedBlock
533533
endPos <- getPosition

0 commit comments

Comments
 (0)