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] Support kramdown footnote syntax #4569

Open
tadamcz opened this issue Aug 2, 2021 · 1 comment
Open

[Feature] Support kramdown footnote syntax #4569

tadamcz opened this issue Aug 2, 2021 · 1 comment

Comments

@tadamcz
Copy link

tadamcz commented Aug 2, 2021

From the kramdown docs:

The footnote definition can contain any block-level element, all lines following a footnote definition indented with four spaces or one tab belong to the definition:

This is a text with a footnote[^2]. 

[^2]:
     And here is the definition.
      > With a quote!

This is not displayed correctly in Typora:
image

@vassudanagunta
Copy link
Contributor

vassudanagunta commented Dec 31, 2024

@abnerlee Please rename this issue to "Support multi-block footnotes like GFM, Pandoc and others"

This syntax is also supported by GFM, GitHub, Pandoc, PHP-Markdown, Multimarkdown, Maruku, MarkDig. You can see how the following is rendered by them here.

In essence, the footnote parser should act similarly to the list item parser, except with a minimum indentation of 4 spaces. Doing so would also fix #6206.

support multi-block, structured footnotes[^m]

[^m]: This is a long foot note
      that spans multiple lines in Markdown

      and has multiple paragraphs

      - and even a list. We could add a table, but
        you get the point.

I think it should be a higher priority to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants