Bug fix. Rewrire the links after the markdown extension have been applied. Doing it before caused some extensions to fail. For example the image gallery only found the first link and had problems with special characters.