Improve documemtation mangling to strip MD reference link markup