-
-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Is your feature request related to a problem? Please describe.
Material for MkDocs has a nice instant preview feature which displays a modal with the link's contents when hovering on a local link. However it doesn't show the modal if the link has a title attribute, instead it shows a simple tooltip. Currently autorefs adds titles when the displayed text is different than the full id, which is very often the case, preventing instant previews to show up.
Describe the solution you'd like
Find a way to only add titles to external links (which cannot be instant previewed). For example, we could check that an identifier is not in the URLs maps (primary and secondary), just like we don't register backlinks that are not in these maps.
Additionally, we could maybe set such title attributes on headings themselves when they don't show the full path. These tooltips won't show up within instant previews though.