Quickly renumber reference ids

I often use reference links, e.g.


[1]: http://www.google.de

I would love a function to auto-renumber the reference ids after I deleted or added links.


Iā€™m not talking about footnotes but about referenced links. Referenced links are a way to keep your markdown light and easy readable because external links are replaced by a short reference (usually something like [1]) in the markdown file. When rendered as pdf or html they appear as normal hyperlink - different to how footnotes are created.