Skip to content

Different chapters with the same footnote ID collide on the print page #542

Open
@Michael-F-Bryan

Description

@Michael-F-Bryan

On rust-lang/rust-by-example#989 they found that when two pages in different chapters use the same footnote (e.g. [1]) then one will clobber the other when all chapters are concatenated to form the print page. Ideally we should be able to tweak the print page so this doesn't happen.

@projektir's original comment:

So... this one is funky. There are two pages in RBE that are attempting to use the [^1] annotation. The way pulldown-cmark does annotations is by creating a div with id equal to the annotation name (in this case, "1"). This is all well and good, until the print.html page is created, in which case this now results in two different divs with id="1", which is invalid and is a failure to the linkchecker.

I've replaced 1 here with the dagger symbol †, which looks like 1 in the fonts used by RBE, but I am not really sure how to address this issue in general since we basically can't use the 1, 2, 3 footnote style for as long as we intend to have a page that concatenates everything together.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LinksArea: Issues with linksA-PrintArea: The "printed" pageA-footnotesArea: footnotes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions