How to reproduce (tested on StackOverflow and SuperUser):
- Click "Ask question"
Enter text containing one or more numbered links, e.g.
StackExchange-based websites (, ) are great, because ... : http://stackoverflow.com : http://serverfault.com
Put the cursor in the empty line before the links and use the "Insert Image" toolbar button to upload an image from your PC.
The image is added as link
The pre-existing links are removed:
StackExchange-based websites (, ) are great, because ... ![enter image description here] : http://i.stack.imgur.com/V7OqX.png
This issue does not occur if the links are given a name instead of just a number:
StackExchange-based websites ([StackOverflow], [SuperUser]) are great, because ...
One could argue that the unnamed variant is an unsupported feature (it's not mentioned in the markdown help page). Still, it's not nice to remove something that the user has written.