LeaVerou / md-block

A custom element for rendering stylable (light DOM) Markdown
https://md-block.verou.me
MIT License
322 stars 17 forks source link

Feature request: footnote support #23

Open hannahilea opened 3 days ago

hannahilea commented 3 days ago

Thanks very much for this package, it has been very useful!

How challenging would it be to support footnotes, as does Github-flavored markdown?

e.g.,

Footnotes are added like so[^fun]. Here's another sentence[^rad].

[^fun]: Congrats, here is a footnote!
[^rad]: This too!

Footnotes are added like this[^fun]. Here's another sentence[^rad].

[^fun]: Congrats, here is a footnote! [^rad]: This too!

hannahilea commented 2 days ago

After looking at this a bit, it seems likely that the support should instead be added to Marked, but a feature request there has been closed in a way that makes it seem like footnotes will intentionally not be supported anytime soon.

If I open a PR here to support footnotes, would you consider it, or is it beyond what you'd like to support here such that I shouldn't bother?