Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is that possible to auto detect link text as web link? #283

Discussion options

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.

You must be logged in to vote

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

Comment options

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.

You must be logged in to vote
1 reply
Comment options

Thank you very much. I never knew I could use angle brackets for this purpose. I am OK to use angle brackets. Cheers.

Answer selected by sgon00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /