mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Add footnote backlinks

Open ashutoshmjain opened this issue 3 years ago • 2 comments

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 avatar Nov 14 '22 23:11 ashutoshmjain

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 avatar Nov 19 '22 00:11 ashutoshmjain

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

ashutoshmjain avatar Nov 19 '22 00:11 ashutoshmjain