Support for markdown link titles

Use case or problem

My plugin Note Toolbar supports creating toolbars with callouts.

Each toolbar item is an internal link, or an external link, which executes a command, navigates to a page, etc.

When hovering over external links I’m missing the tooltips (aria-label attribute) that provides additional context about what clicking on those links will do.

This is particularly necessary when the link is just an icon, to save space and provide an experience more akin to an app’s toolbar.

Proposed solution

A title part of a markdown link’s URI portion was in Gruber’s spec, and has been part of CommonMark since the beginning.

Example:

[link](/uri "title")

…would become:

<a href="/uri" title="title">link</a>

Though perhaps the aria-label attribute should maybe be used instead, in order to support more screen readers (from what I’ve read).

Current workaround (optional)

None

Related feature requests (optional)

I’ve made a similar feature request for the Iconize plugin, though I believe adding support in Obsidian-flavored markdown would also solve this particular use case for more users and provide better accessibility options overall.

2 Likes