quantizor / markdown-to-jsx

🏭 The most lightweight, customizable React markdown component.
https://markdown-to-jsx.quantizor.dev/
MIT License
1.96k stars 169 forks source link

Support multiline footnotes #552

Closed zegl closed 5 months ago

zegl commented 5 months ago

Many services, including GitHub, supports multiline footnotes on following format^format:

[^format]: row
row
row

row row

and an indented format that allows for empty lines inside the note^indented

[^indented]: row
    more

    footnote after empty line

more

footnote after empty line

They also support a limited set of markdown in footnotes^md:

[^md]: row
**row**
`row`

row row

markdown-to-jsx currently only supports single line footnotes[^single].

[^single]: single line

[^single]: single line

I'm proposing to add support for multiline footnotes in markdown-to-jsx as well, which I would be willing to contribute the code for.