I have a changelog file formatted using Github's markdown.
Initially I used inline links for every link I needed to add, that is:
This is some [example](http://www.stackoverflow.com) line of text.
Over time, as the file grew in size, it became a bit messy due mainly to this way of inserting links.
I'd like to convert all links from inline to reference (see description of each), that is convert the above line to this:
This is some [example][1] line of text.
[1]: http://www.stackoverflow.com
Since the file is rather large and contains many inline links, I was wondering if there is some automated way to do this. I use Sublime Text 3 to edit, but I couldn't find a suitable package for this task. Perhaps some clever regex?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…