Search code examples
markdownmkdocs

Markdown links without need for text link


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)


Solution

  • You can use

    <https://sample_url>
    

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

    It will also be rendered properly with mkdocs