link-headers-directly icon indicating copy to clipboard operation
link-headers-directly copied to clipboard

Feature Request: Make this work with block links too

Open peppidesu opened this issue 2 years ago • 1 comments

Currently, the ^ is still present when linking a block. I feel like having a regex string that can be changed by the user can make this easier to implement.

peppidesu avatar Jan 02 '23 16:01 peppidesu

I got this to work like intended:

for (var i = 0; i < linkElements.length; i++) {
    alias = linkElements[i].innerText.replace(/(.*)\s>\s\^?/,"");
    linkElements[i].innerText = alias;		   
}

peppidesu avatar Jan 02 '23 16:01 peppidesu