drdhaval2785 / github_issue_backup

a script to backup github issues
0 stars 0 forks source link

href and github markup #3

Closed drdhaval2785 closed 9 years ago

drdhaval2785 commented 9 years ago

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