mdbook/src/utils
Eric Huss b20b1757a9 Add footnote backreferences, and update styling
This makes several changes to how footnotes are rendered:

- Backlinks are now included, which links back to the reference so you
  can continue reading where you left off.
- Footnotes are moved to the bottom of the page. This helps with the
  implementation of numbering, and is a style some have requested. I
  waffled a lot on this change, but supporting the in-place style was
  just adding too much complexity.
- Footnotes are now highlighted when you click on a reference.
- Some of the spacing for elements within a footnote has now been fixed
  (such as supporting multiple paragraphs).
- Footnote navigation now scrolls to the middle of the page.

This is an alternative to https://github.com/rust-lang/mdBook/pull/2475

Closes https://github.com/rust-lang/mdBook/issues/1927
Closes https://github.com/rust-lang/mdBook/issues/2169
Closes https://github.com/rust-lang/mdBook/issues/2595
2025-03-30 06:44:59 -07:00
..
fs.rs style: simplify string formatting for readability 2024-09-21 15:53:59 -07:00
mod.rs Add footnote backreferences, and update styling 2025-03-30 06:44:59 -07:00
string.rs feat: use once_cell instead of lazy_static (#1894) 2022-09-22 15:05:39 -07:00
toml_ext.rs clippy: use char instead of str 2020-12-31 15:37:34 -05:00