mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Footnotes in list item #201
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fiz85 on GitHub (Apr 17, 2018).
I want to put a note in an item list but Markdown does not convert it to HTML.
Normal footnote:

Footnote in list:

Thanks for your help!
@xoofx commented on GitHub (Apr 22, 2018):
Could you put a simple text sample here so that we can also see it directly on babelmark?
@fiz85 commented on GitHub (Apr 23, 2018):
Works :
abc
def1
If you put the same items in a list :
No footnote.
toto ↩︎
@xoofx commented on GitHub (Apr 23, 2018):
Here is the link on babelmark with the footnote not working for a list.
This is indeed a bug. Though currently don't have time to work on it but PR welcome!
@keith-hall commented on GitHub (Aug 21, 2018):
It seems like the problem is that the block processor doesn't see the list as being closed, so doesn't parse the link definition properly, and thus the inline parser doesn't see the footnote link inside the list as having a valid target and treats it as a literal.
Having the footnote definition before the list works as expected, as does having a block item between the list and the footnote definition.
Unfortunately I'm not familiar enough with markdig's internals yet to see the clear best way to fix this, but if someone can give some pointers I'll happily raise a PR.
@xoofx commented on GitHub (Aug 21, 2018):
It should be fixed by commit
790bff3and published in0.15.2+