1

I would like to have links in my markdown files, without the need of specifyng a text link, such us:

[text link](https://sample_url)

Is there a way to do so without duplicating the URL?

[https://sample_url](https://sample_url)

As URLs might change over time and I would like to avoid having to change them twice.

(Sharing the question as it took me a while to find an answer)

vabada
  • 1,738
  • 4
  • 29
  • 37

1 Answers1

2

You can use

<https://sample_url>

See https://daringfireball.net/projects/markdown/syntax#autolink

It will also be rendered properly with mkdocs

mit
  • 11,083
  • 11
  • 50
  • 74
vabada
  • 1,738
  • 4
  • 29
  • 37
  • 3
    These are called [automatic links](https://daringfireball.net/projects/markdown/syntax#autolink) and are clearly defined in the Markdown Syntax Rules. – Waylan Aug 30 '19 at 17:11