Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically add rel="footnote" to footnote links #706

Closed
xplosionmind opened this issue Mar 11, 2021 · 3 comments
Closed

Automatically add rel="footnote" to footnote links #706

xplosionmind opened this issue Mar 11, 2021 · 3 comments
Assignees

Comments

@xplosionmind
Copy link

xplosionmind commented Mar 11, 2021

Hello, I have a Jekyll website which uses kramdown as the default Markdown parser. I noticed that a footnote link contains code like the following:

<sup id="fnref:1" role="doc-noteref">
    <a href="#fn:1" class="footnote">1</a>
</sup>

I believe that, in order to comply with the semantic HTML philosophy, it would be really important to ad to the generated a tag the rel="footnote" attribute:

<sup id="fnref:1" role="doc-noteref">
    <a href="#fn:1" class="footnote" rel="footnote">1</a>
</sup>

Furthermore, in modern and developed RSS readers, if the rel=footnote attribute is present, the footnote is clickable and displayed as a pop-up window; in other words, it is better recognized and implemented.

Would it be possible to add this feature?


Thank you very much!
Best,
T

@gettalong gettalong self-assigned this Mar 15, 2021
@gettalong
Copy link
Owner

This is documentedThanks for opening the issue! I will have to read up on rel="footnote" to give you an answer on whether we can/will add this feature.

@gettalong
Copy link
Owner

I think that this change is okay and I will add it to the next release.

@xplosionmind
Copy link
Author

I will add it to the next release.

This is awesome!
Thank you very much for your work. I love kramdown!

Best,
T

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

No branches or pull requests

2 participants