SWC-766 [Markdown] Added more robust checking for incomplete urls