Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Footnote links are not working. #38

Open
geechartier opened this issue May 8, 2022 · 0 comments
Open

Footnote links are not working. #38

geechartier opened this issue May 8, 2022 · 0 comments

Comments

@geechartier
Copy link

The code that is generated for footnotes links is incorrect and causes the links to not work. The link to the footnote is generated like this:

<sup><a href="#fn-1" id="user-content-fnref-1">1</a></sup>

The footnote is like this:

<li id="user-content-fn-1">
    <p>
        First footnote
        <a href="#fnref-1">
            <g-emoji class="g-emoji" alias="leftwards_arrow_with_hook" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/21a9.png"></g-emoji>
        </a>
    </p>
</li>

The href attribute of the link to the footnote does not match the target id attribute of the footnote <li> element. Also, the href attribute of the return link does not match the target id attribute of the footnote link.

If the footnote link is changed from

<sup><a href="#fn-1" id="user-content-fnref-1">1</a></sup>

to

<sup><a href="#user-content-fn-1" id="fnref-1">1</a></sup>

it works.

I have checked this directly in GitHub and the footnotes work there but not with HTML generated through GitDown.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant