rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust
https://rust-lang.github.io/mdBook/
Mozilla Public License 2.0
18.23k stars 1.63k forks source link

Add footnote backlinks #1927

Open ashutoshmjain opened 1 year ago

ashutoshmjain commented 1 year ago

Hi

When I create a footnote as shown in the guide..

This is an example of a footnote[^note].

[^note]: This text is the contents of the footnote, which will be rendered
    towards the bottom.

I get the link from the number in maintext to the footnote which works normal, but back-links (footnote to the main text) don't work ..So effectively in a superlong text , I can get to the footnotes easily but I need to scroll back up to find where was the origin .. wondering if I am doing something wrong?

ashutoshmjain commented 1 year ago

To further elaborate on this issue - When I see the preview in vscode, I do see the backlinks and they work fine as intended (as shown in the screenshot below) ; But when I look at the localhost:3000 rendered via mdbook serve , the backlinks (wiggly arrows) simply vanish ! Same behaviour if I publish the mdbook to github pages.

Screen Shot 2022-11-18 at 4 16 52 PM
ashutoshmjain commented 1 year ago

If you want to test the behaviour live , please look at https://gita.shutri.com