markdown-links icon indicating copy to clipboard operation
markdown-links copied to clipboard

Resolve uri started with slash.

Open vanadium23 opened this issue 5 years ago • 2 comments

I have an absolute path links, that works fine in VS Code, but the plugin does not detect them as links.

Example like this:

<!-- first.md -->

# First

Hello world!
<!-- some/long/path/second.md -->

# Second

[here](/first.md)

We can replace root as workspaceFolder.

P.s. I want first to discuss this feature, and if it is good than can implement. :)

vanadium23 avatar Aug 03 '20 16:08 vanadium23

I am sorry for the long response time. I can't see any problem with this idea so if you are interested in developing a solution for this I am very glad and open to help.

tchayen avatar Aug 16 '20 14:08 tchayen

I've just now discovered that another good suggestions regarding file discovery was mentioned in #47. If you will be working on that, would you mind abstracting a proper function for normalizing/stripping the URL so we could also easily add support for that?

tchayen avatar Aug 18 '20 21:08 tchayen