From 4800c0f4cdcea074fe8b7d02ddda33628afe934b Mon Sep 17 00:00:00 2001 From: vurdalakov Date: Fri, 16 May 2014 12:05:25 +0300 Subject: [PATCH] Allow no whitespace after opening equal signs in headings --- creole.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/creole.php b/creole.php index 9383d17..3825c1a 100644 --- a/creole.php +++ b/creole.php @@ -490,7 +490,7 @@ function creole($options = array()) { for ($i = 1; $i <= 6; $i++) { $g['h' . $i] = array( 'tag' => 'h' . $i, - 'regex' => '/(^|\n)[ \t]*={' . $i . '}[ \t]' . + 'regex' => '/(^|\n)[ \t]*={' . $i . '}[ \t]*' . '([^~]*?(~(.|(?=\n)|$))*)[ \t]*=*\s*(\n|$)/', 'capture' => 2 );