BUG Markdown : if an automatic URL have two underscores, the <em> work and the URL is incorrect
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2546 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -87,6 +87,9 @@ class markdown
|
||||
$replace[] = "<a href='\\1'>\\1</a>";
|
||||
$search[] = "#<(.+@.+)>#U";
|
||||
$replace[] = "<a href='mailto:\\1'>\\1</a>";
|
||||
// The links must not allow the <em> : redo the conversion
|
||||
$search[] = "#(<a href='.*)<em>(.*)</em>(.*'>.*)<em>(.*)</em>(.*</a>)#";
|
||||
$replace[] = "\\1_\\2_\\3_\\4_\\5";
|
||||
// TODO : Links by reference :
|
||||
// Voici un petit texte écrit par [Michel Fortin][mf].
|
||||
// [mf]: http://michelf.ca/ "Mon site web"
|
||||
|
||||
Reference in New Issue
Block a user