From 8c1dbc8229d80fd6894c07bd9ebf51629e3d0d4a Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 18 Nov 2014 13:54:12 +0000 Subject: [PATCH] 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 --- markdown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown.php b/markdown.php index b5be540..c93d4b1 100644 --- a/markdown.php +++ b/markdown.php @@ -83,9 +83,9 @@ class markdown // Automatics links : // // - $search[] = "#<(https?://.+)>#"; + $search[] = "#<(https?://.+)>#U"; $replace[] = "\\1"; - $search[] = "#<(.+@.+)>#"; + $search[] = "#<(.+@.+)>#U"; $replace[] = "\\1"; // TODO : Links by reference : // Voici un petit texte écrit par [Michel Fortin][mf].