markdown : The automatic URL are now restricted to allow more than one URL by line

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1865 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-11-18 13:54:12 +00:00
parent b4a21057cd
commit 8c1dbc8229

View File

@@ -83,9 +83,9 @@ class markdown
// Automatics links :
// <http://dominique.fournier38.fr>
// <dominique@fournier38.fr>
$search[] = "#&lt;(https?://.+)&gt;#";
$search[] = "#&lt;(https?://.+)&gt;#U";
$replace[] = "<a href='\\1'>\\1</a>";
$search[] = "#&lt;(.+@.+)&gt;#";
$search[] = "#&lt;(.+@.+)&gt;#U";
$replace[] = "<a href='mailto:\\1'>\\1</a>";
// TODO : Links by reference :
// Voici un petit texte écrit par [Michel Fortin][mf].