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:
But the above code is kinda messy and redundant. Can I simply put the pure text there Thus
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.
Replies: 1 comment 1 reply
-
The markdown syntax to this problem is to surround your link in angle brackets: 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.
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.