Skip to content

Footnote in a footnote appears before other footnotes #410

Open
@kuruczgy

Description

goldmark has https://github.com/yuin/goldmark/discussions in github.
You should post only issues here. Feature requests and questions should be posted at discussions.

  • goldmark is fully compliant with the CommonMark. Before submitting issue, you must read CommonMark spec and confirm your output is different from CommonMark online demo.
    • Extensions(Autolink without < >, Table, etc) are not part of CommonMark spec. You should confirm your output is different from other official renderers correspond with an extension.
  • goldmark is not dedicated for Hugo. If you are Hugo user and your issue was raised by your experience in Hugo, you should consider create issue at Hugo repository at first .

Please answer the following before submitting your issue:

  1. What version of goldmark are you using? : goldmark: v1.5.4, https://github.com/kpym/gm: v0.11.4
  2. What version of Go are you using? : go version go1.21.0 linux/amd64
  3. What operating system and processor architecture are you using? : linux/amd64
  4. What did you do? : gm test.md
    Where test.md contains:
before[^before]

[^before]: before

parent[^parent]

[^parent]: parent[^child]

[^child]: child

after[^after]

[^after]: after
  1. What did you expect to see? : Using https://michelf.ca/projects/php-markdown/dingus/, the order of the footnotes is:
1. before
2. parent
3. after
4. child
  1. What did you see instead? :
    The order the footnotes appear in index.html is the following:
1. before
2. child
3. parent
4. after
  1. Did you confirm your output is different from CommonMark online demo or other official renderer correspond with an extension?: Yes, see above.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    pinnedissue should not be closed by stalebot

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions