diff --git a/markdown.php b/markdown.php index 3b25bb4..ea9abda 100644 --- a/markdown.php +++ b/markdown.php @@ -33,6 +33,11 @@ class markdown $search[] = "/^(.+)\\n--+$\\n/Um"; $replace[] = "\n
"; + $mark = preg_replace ($search, $replace, $mark); @@ -46,16 +51,12 @@ class markdown return the html */ private function paragraph ($mark) { + // Think thereis already htmlentities passed on $mark !!! $timeStart = microtime (TRUE); $timeregex = 0; // Initialization of convertions $search = array (); $replace = array (); - // SEPARATORS : *** --- ___ * * * - - - _ _ _ - // Must be placed before EMPHASIS - $search[] = "/\\n^[*_-] ?[*_-] ?[*_-]$/Um"; - $replace[] = "
\n";
-
// Titles short
// == TITRE1
$search[] = "/^==+ (.+)( ==+)?$/Um";
@@ -82,8 +83,8 @@ class markdown
// Automatics links :
//