Markdown reader: Allow footnotes to be indented < 4 spaces.

This fixes a regression.  A test case has been added in testsuite.txt.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1859 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2010-03-01 22:37:06 +00:00
parent 50583e9e3f
commit f5e00c50b8
2 changed files with 4 additions and 4 deletions

View file

@ -222,8 +222,8 @@ referenceTitle = try $ do
notFollowedBy (noneOf ")\n")))
return $ decodeCharacterReferences tit
noteMarker :: GenParser Char st [Char]
noteMarker = string "[^" >> manyTill (noneOf " \t\n") (char ']')
noteMarker :: GenParser Char ParserState [Char]
noteMarker = skipNonindentSpaces >> string "[^" >> manyTill (noneOf " \t\n") (char ']')
rawLine :: GenParser Char ParserState [Char]
rawLine = do

View file

@ -715,5 +715,5 @@ footnote (as with list items).
This paragraph should not be part of the note, as it is not indented.
[^1]: Here is the footnote. It can go anywhere after the footnote
reference. It need not be placed at the end of the document.
[^1]: Here is the footnote. It can go anywhere after the footnote
reference. It need not be placed at the end of the document.