Doing URL autolinking derails the input which is made like a href.
e.g.
$text = preg_replace('/([^"\']*)(https?:\/\/[^\s"<>)]+)\/?/', '$1<a href="$2" target="_blank">$2</a>', $text); // URL autolinking
would render the links which are already given with href wrong.
The second issue is treatment of github markup []().
Therefore, as far as I can see, coding for URL links would be the toughest job
Doing URL autolinking derails the input which is made like a href. e.g.
$text = preg_replace('/([^"\']*)(https?:\/\/[^\s"<>)]+)\/?/', '$1<a href="$2" target="_blank">$2</a>', $text); // URL autolinking
would render the links which are already given with href wrong.The second issue is treatment of github markup
[]()
. Therefore, as far as I can see, coding for URL links would be the toughest job