Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference-style links in Visual Studio Code

I found that Markdown has something called reference-style links. I don't know if is it official Markdown syntax or it exists only in some Markdown add-ons.

I tried to create something like that in VSCode, but it doesn't work:

[Test][ducksearch]  
[ducksearch]: https://duckduckgo.com

I wonder is it a bug/un-implemented function in VSCode or that syntax works only with some extension?

like image 713
Krzysztof Boronowski Avatar asked Jul 01 '26 07:07

Krzysztof Boronowski


1 Answers

Reference-style links are part of the original Markdown specification. They should work just about everywhere Markdown does, and that includes Visual Studio Code.

Just add a blank line to separate the paragraph containing the link from the reference:

[Test][ducksearch]

[ducksearch]: https://duckduckgo.com
like image 186
Chris Avatar answered Jul 06 '26 09:07

Chris