Skip to content

feature: Allow choosing whether to set title HTML attributes on links #62

@pawamoy

Description

@pawamoy

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.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions