Skip to content
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

Feature request: footnotes #3309

Closed
grepsuzette opened this issue Jun 2, 2024 · 1 comment
Closed

Feature request: footnotes #3309

grepsuzette opened this issue Jun 2, 2024 · 1 comment

Comments

@grepsuzette
Copy link

grepsuzette commented Jun 2, 2024

Marked version:
marked v12.0.2

Describe the bug
"footnotes" seem unsupported.

To Reproduce
Having bottom-notes such1 as2 this3 kind4 will have them on a continuous line, missing some <br /> probably (edit: actually not a bug, it's currently unsupported!).

Demo is here

Commonmark does not have them either. It may just be a github thing.
Would you have it if PR?

Footnotes

  1. in github

  2. those are rendered one

  3. per line,

  4. but not with markedjs (it's shown on one line).

@UziTech
Copy link
Member

UziTech commented Jun 2, 2024

Unfortunately GitHub still doesn't have footnotes in their spec which makes it very difficult to know how to handle edge cases.

There is already an extension that works to add them to marked: https://github.com/bent10/marked-extensions/tree/main/packages/footnote

@UziTech UziTech closed this as completed Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants