- 
  Notifications
 
You must be signed in to change notification settings  - Fork 80
 
Is that possible to auto detect link text as web link? #283
-
Sometimes, I want to show the link as the link text itself, what I mean is the following:
[https://example.com/foo/bar/a/b/c/d/e/f](https://example.com/foo/bar/a/b/c/d/e/f)
But the above code is kinda messy and redundant. Can I simply put the pure text there https://example.com/foo/bar/a/b/c/d/e/f for this purpose?
Thus
https://example.com/foo = [https://example.com/foo](https://example.com/foo)
Many html rendering tools have this feature. I am wondering if it's doable here.
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions
The markdown syntax to this problem is to surround your link in angle brackets: <https://example.com/foo/bar/a/b/c/d/e/f>, which this plugin supports.
Supporting bare urls directly without any special syntax would require finding them in plain text using some regex which I do not want to maintain. This plugin is built heavily off of tree sitter and avoids any custom parsing like this.
Given that there is an alternative that only adds 2 characters I'm not interested in supporting this.
Replies: 1 comment 1 reply
-
The markdown syntax to this problem is to surround your link in angle brackets: <https://example.com/foo/bar/a/b/c/d/e/f>, which this plugin supports.
Supporting bare urls directly without any special syntax would require finding them in plain text using some regex which I do not want to maintain. This plugin is built heavily off of tree sitter and avoids any custom parsing like this.
Given that there is an alternative that only adds 2 characters I'm not interested in supporting this.
Beta Was this translation helpful? Give feedback.
All reactions
- 
 
😄 1 
-
Thank you very much. I never knew I could use angle brackets for this purpose. I am OK to use angle brackets. Cheers.
Beta Was this translation helpful? Give feedback.