Skip to content

Multiple footnotes in a row are not rendered correctly #2687

Open
@pamolloy

Description

@pamolloy

Problem

When listing more than one footnote in a row without spaces in between them, mdbook only renders the last footnote and at least as of v0.4.48 generates the following warnings.

so-called advanced persistent threats[^10][^18][^5]. Once an exploit is installed,
2025-05-05 21:16:52 [WARN] (mdbook::utils): footnote `10` in `<unknown>` is defined but not referenced
2025-05-05 21:16:52 [WARN] (mdbook::utils): footnote `18` in `<unknown>` is defined but not referenced
2025-05-05 21:16:52 [WARN] (mdbook::utils): footnote `10` in `u-root.md` is defined but not referenced
2025-05-05 21:16:52 [WARN] (mdbook::utils): footnote `18` in `u-root.md` is defined but not referenced

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version


Metadata

Metadata

Assignees

No one assigned

    Labels

    A-footnotesArea: footnotesC-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions