git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: Fixed regression in reference key parser.

* The recent change allowing spaces and newlines in the URL caused problems when reference keys are stacked up without blank lines between. This is now fixed. * Added test.

commit71e0557e61f01f2442717b02f0789b3b39c0c52d authorJohn MacFarlane <jgm@berkeley.edu> dateMon 13 Dec 2010, 15:50 (16 years ago) parent77cb199
2 files changed+1−1
src/Text/Pandoc/Readers/Markdown.hs+1 tests/testsuite.txt−1
src/Text/Pandoc/Readers/Markdown.hs+1
@@ -207,6 +207,7 @@ referenceKey = try $ do
207207 notFollowedBy' referenceTitle
208208 skipMany (oneOf " \t")
209209 optional nl
210+ optional nonindentSpaces
210211 notFollowedBy' reference
211212 skipMany (oneOf " \t")
212213 many1 (noneOf " \t\n")
tests/testsuite.txt−1
@@ -631,7 +631,6 @@ Indented [thrice][].
631631This should [not][] be a link.
632632
633633 [once]: /url
634−
635634 [twice]: /url
636635
637636 [thrice]: /url