-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is "footnote" supported in marked.js? #714
Comments
No, footnotes are a non-standard markdown extension and aren't supported, sorry! |
Okay, thanks for answering. Maybe I can implement it myself. |
@alston19 I know it's been long but I'm wondering whether you found a solution to this? |
@SHxKM sorry but no 😂 |
@SHxKM check out #1562 (comment) to find some code that should work to add footnotes. |
Github flavored markdown now supports footnotes (https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/). Does that mean it's now time to implement this feature? |
@splch If you want to implement this it would probably be accepted now. It would be better if GitHub would add it to the GFM spec so we could know the edge cases but it looks like they haven't updated the spec in a while. ☹ Looks like there is already an issue for this. github/cmark-gfm#236 |
I just came across this new feature on GitHub too. I'll reopen the issue so others coming here can find it 👍 Hopefully GitHub updates the GFM spec soon 🤞 |
Ya it seems like there are a lot of errors with it since they don't specify what happens in edge cases. |
Until this is addressed, I've been working around by using HTML inside my markdown:
Where
Not the greatest, but it works! |
There is markdown-it-footnote: https://github.com/markdown-it/markdown-it-footnote
You do not have to wait for github to give a spec, to implement a useful support of footnote. |
In the mean time, any user who wants this should feel free to make this into a Marked Extension . |
@xieyuheng would you like to work on adding it to marked? PRs are always welcome 😁👍 This is open source software so anyone can work on adding footnotes in marked. Once someone who wants them in marked is willing to work on it they will be added. |
@UziTech is this issue still open ? I would like to contribute this feature. |
Ya go ahead. Thanks! |
@UziTech I'll try to cover up these cases for foot note which is given in markdown-it-footnote Normal Footnote
Inline footnote
output for above examples are given in there documentation (here) |
When considering the use of footnotes in your content, it's important to keep in mind the following accessibility and usability factors:
If you find it necessary to use footnotes, feel free to explore the |
I'm going to close this since there is an extension created |
It doesn't work when I input :
hello1
Footnotes
hi ↩
The text was updated successfully, but these errors were encountered: