From 2b8ae97d08afd99fa4138fdfca2569e4784e89cb Mon Sep 17 00:00:00 2001 From: vargenau Date: Fri, 20 Nov 2009 17:50:59 +0000 Subject: [PATCH] Add Wikicreole syntax for extractSections git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7274 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/stdlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stdlib.php b/lib/stdlib.php index 315944179..a31c058b2 100644 --- a/lib/stdlib.php +++ b/lib/stdlib.php @@ -2194,7 +2194,7 @@ function extractSections ($sections, $content, $page, $quiet = false, $sectionhe while ($sections > 0) { - if (preg_match("/ ^(!{1,})\\s*(.*)\\n" // section header + if (preg_match("/ ^(!{1,}|={2,})\\s*(.*)\\n" // section header . " \\s*$\\n?" // possible blank lines . " ( (?: ^.*\\n? )*? )" // some lines . " ( ^\\1 (.|\\n)* | \\Z)/xm", // sec header (same or higher level) (or EOF) -- 2.45.0