> Lazy Link version of comment<p><pre><code> I have done this type of thing for years. It is similar
to the 'Lazy Link' work by Brett Terpstra[*] and Tyler
Butler[1]. I have tweaked my own python version of this
script over the years. My script recognizes Numbered and
Lazy links, maintains the order of Number Links while
adding in the Lazy links.
Importantly, I DO NOT LEAVE MY TEXT IN LAZY FORMAT, but
run my script to convert everything to numbered and SAVE
it. In fact, I have VS Code set to automatically run
every time I save a markdown document. This addresses
[chalst's point][*] about the maintainability of link
order.
While I do not use footnotes in Markdown, Lazy links can
[extended to footnotes][2]
I suggest to jgalvez reference the term "Lazy Links" in
your documents for search-ability of this feature.
[*]: http://brettterpstra.com/2013/10/19/lazy-markdown-reference-links/
[1]: https://www.tylerbutler.com/2014/05/markdown-lazy-links-in-python/
[*]: https://news.ycombinator.com/item?id=17547765
[2]: http://brettterpstra.com/2013/10/30/lazy-markdown-footnotes/</code></pre>