Skip to content

Footnotes in lists are numbered before other footnotes #533

@goofpunk

Description

@goofpunk

Describe the bug
If you include footnotes in a list (whether ordered or unordered), the footnotes that are in the list get numbered first, and are at the top of the list at the bottom of the HTML output.

To Reproduce

---
title: testing the footnotes bug
---
Lorem ipsum dolor sit amet. Aliqua cillum, eu velit.[^note1] Velit deserunt adipiscing adipiscing ullamco exercitation.

- this is a list item
- this is a list item[^note2]
- this is a list item[^note3]

Lorem ipsum dolor sit amet. Adipiscing[^note4] adipiscing ullamco, exercitation sint. Exercitation sint, fugiat exercitation voluptate amet.

[^note1]: this should be the first note
[^note2]: this should be the second note
[^note3]: this should be the third note
[^note4]: this should be the fourth note

Expected behavior
Notes should be in the order they were numbered. Instead, the results (in both the numbering and the list at the bottom) are:

  • note2
  • note4
  • note1
  • note3

Debug info
Version of library being used: 2.4.10

Any extras being used: reproducible with no extras other than footnotes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions