Enhancement: Dynamic title attribute on Markdown Footnote links #27387
Labels
[Feature] Markdown
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Impacted plugin
Jetpack
What
Footnote links' titles say "Read footnote." This would make the attribute display the content of the footnote.
How
At the moment, if a user hovers over a footnote, the
title
attribute displays this tool tip:I think it would be nice if JetPack showed users the full text of the footnote. For example:
This is controlled by :
jetpack/projects/plugins/jetpack/_inc/lib/markdown/extra.php
Line 3020 in d7a6569
Specifically:
The change is relatively straightforward:
That takes the text of the footnote, sanitises it, and adds it as the title element.
This builds on the work I did in #21371
The text was updated successfully, but these errors were encountered: