Allow footnote definitions to not be separated by blank lines#825
Conversation
|
Thanks for your work. Footnotes are not included in the GFM spec but in the footnotes example of its guide to Markdown consecutive footnotes work. Please note this pull request should be created against the Also note that tests must be written into spec |
|
Isn't the I'll try to see how to make the tests work. |
|
CI passed. \o/ |
|
OK, 0.10 version will be released soon, and it contains many bugfixes and enhancements, but also some minor breaking changes. So, we can generate a 0.9.4 release with this change and #694. Thanks. |
|
Thanks a lot! I'll backport the fix in the next days. |
This is a change allowing to fix rust-lang/rust#100638.
It's a bit strange that link definitions can follow each others but that footnote definitions can't so I think for consistency, allowing it would be more logical.
As for the code, it's not great as it forces to "look ahead" in case this is a footnote definition and then return and come back into
parse_blockto actually put this new footnote definition into the tree. If you have suggestions for improving it, it'd be very welcome! :)