[markdown mode] Fixed a bug in link matching