You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Footnotes are squished together by rustdoc when there's no empty line between them #100638
This is the expected behaviour from commonmark as you can see here.
Closing then.
Hi @GuillaumeGomez, CommonMark does not support footnotes at all. RustDoc is very explicit that it does, so the behaviour of RustDoc's footnotes should probably be based on whatever library it uses for Markdown parsing rather than actual CommonMark.
changed the title [-]Footnotes are squished together by `cargo doc` when there's no empty line between them[/-][+]Footnotes are squished together by rustdoc when there's no empty line between them[/+]on Jan 25, 2024
Activity
Eh2406 commentedon Aug 16, 2022
Transferring to Rust as it is an issue with doc generation.
ehuss commentedon Aug 16, 2022
I think this is somewhat working as intended. Footnote definitions need to be separated by blank lines.
That is not ideal, and I think pulldown-cmark/pulldown-cmark#20 is the closest thing tracking this issue.
GuillaumeGomez commentedon Aug 23, 2022
This is the expected behaviour from commonmark as you can see here.
Closing then.
CJKay commentedon Aug 23, 2022
Hi @GuillaumeGomez, CommonMark does not support footnotes at all. RustDoc is very explicit that it does, so the behaviour of RustDoc's footnotes should probably be based on whatever library it uses for Markdown parsing rather than actual CommonMark.
You can see from this simple example that CommonMark does not support footnotes:
But CommonMark with "extensions" does:
GuillaumeGomez commentedon Aug 23, 2022
Oh I see, my apologies. Reopening the issue then.
[-]Footnotes are squished together by `cargo doc` when there's no empty line between them[/-][+]Footnotes are squished together by rustdoc when there's no empty line between them[/+]fmease commentedon Jan 25, 2024
Triage: Still an issue.
GuillaumeGomez commentedon Jan 26, 2024
Taking a look.
Add regression test for rust-lang#100638
Add regression test for rust-lang#100638
Rollup merge of rust-lang#120443 - GuillaumeGomez:footnote-def-improv…
Rollup merge of rust-lang#120443 - GuillaumeGomez:footnote-def-improv…
Add regression test for rust-lang#100638
Rollup merge of rust-lang#120443 - GuillaumeGomez:footnote-def-improv…
Unrolled build for rust-lang#120443