-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add title
attribute with footnote content to link leading to the footnote
#4
Comments
title
attributetitle
attribute with footnote content to link leading to the footnote
Hey! Title doesn’t work with touch devices and can’t contain HTML. AFAIK all accessibility guidelines really strongly recommend against using it for such important content. I’m not sure this is a good idea. This micromark project here deals with parsing footnotes. Markdown footnote constructs are turned into HTML elements ion After that plugin, you can (in the rehype ecosystem, working on What I personally would recommend if you want to improve the footnote experience for readers, is to use client side javascript to look for all |
Marking as a Q because it’s not something for here, and still a bit vague what the good way to go about it is |
Thank you for the fast responses! I found this genuinely helpful. I think what I wanted to suggest was adding the I'll continue exploring how to transform the |
Initial checklist
Problem
The UX of using footnotes is often distracting – you click on a link that takes you to the bottom of the page, and then you click the "back" character to get back. Often, I'm losing the place where I originally left off.
Solution
It would be great to be able to hover the footnote and have an overlay show the contents of the footnote. E.g. like this:
Here, I manually changed the HTML of the
<a>
tag to have atitle
attribute with the contents of the footnote.Alternatives
I think adding footnotes as titles would be sensible, as it is very unobtrusive. Only users looking for this will actually be impacted, adding lots of Capital-D Delight to the footnotes.
(I'm not exactly sure if this is the right package to add this as an issue. I'm using remark with the
remark-gfm
plugin that seems to be using this package.)The text was updated successfully, but these errors were encountered: