-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustdoc: recursive footnote not rendered correctly #131946
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
T-rustdoc-frontend
Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Comments
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Oct 19, 2024
Noratrieb
added
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Oct 19, 2024
fmease
added
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
T-rustdoc-frontend
Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
labels
Oct 19, 2024
Zalathar
added a commit
to Zalathar/rust
that referenced
this issue
Oct 20, 2024
…riddle rustdoc: Clean up footnote handling Best reviewed commit by commit. Extracts footnote handling logic into it's own file (first commit) and then makes that file slightly nicer to read/understand. No functional changes, but lays the groundwork for making more changes to footnotes (eg rust-lang#131901, rust-lang#131946)
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Oct 20, 2024
Rollup merge of rust-lang#131945 - aDotInTheVoid:footnote-time, r=notriddle rustdoc: Clean up footnote handling Best reviewed commit by commit. Extracts footnote handling logic into it's own file (first commit) and then makes that file slightly nicer to read/understand. No functional changes, but lays the groundwork for making more changes to footnotes (eg rust-lang#131901, rust-lang#131946)
That was a funny case. So the fix is simple: we need to check for footnote references in footnote definitions. I have a fix ready, sending the patch once I added tests. |
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Nov 14, 2024
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Nov 15, 2024
Rollup merge of rust-lang#133040 - GuillaumeGomez:footnote-ref-in-def, r=notriddle [rustdoc] Fix handling of footnote reference in footnote definition Fixes rust-lang#131946. We didn't check if we had footnote reference in footnote definition. r? `@notriddle`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
T-rustdoc-frontend
Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
rustdoc footnote-hell.md
I expected to see this happen: all the links are correct, the backlinks are at least not completely wrong
Instead, this happened: a mess
#fn1
#b
#a
The backlinks are
#fnref1
and#fnref2
respectively, which seems correct.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: