Highlightr-Plugin icon indicating copy to clipboard operation
Highlightr-Plugin copied to clipboard

Feature Request: Allow specialized command to target the alias of markdown links.

Open mariomui opened this issue 1 year ago • 0 comments

As a user, I highlight markdown links frequently. I'd like the link to only highlight the text part.

Example

Before highlight: [text](https://google.com) After highlight `text

Proposed Solution

We trim the link, regex search for the first instance of bracket enclosed text and replace the selection with the appropriate html wrapped text.

Challenges

Some folks might want to highlight the entire link along with the url for parsing reasons. 🔑 A separate command called Highlight Link Text Only might be useful as a differentiator.

Prospects

When highlighting links, the benefit of viewing a shorter title is kept while keeping the highlight effect (otherwise the entire 30+ character html link would be shown, a terrible ui experience)

mariomui avatar Sep 27 '23 20:09 mariomui