dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f7012d
)
fix source forge bug 787780
author
Antoine Musso
<hashar@users.mediawiki.org>
Tue, 16 Mar 2004 03:58:36 +0000
(
03:58
+0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Tue, 16 Mar 2004 03:58:36 +0000
(
03:58
+0000)
Allow = sign in headers. Ex: = my text = crap = will render as <h1>my text = crap</h1>
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
04cfc35
..
5e5a7d9
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-427,7
+427,7
@@
class Parser
{
for ( $i = 6; $i >= 1; --$i ) {
$h = substr( "======", 0, $i );
- $text = preg_replace( "/^{$h}(
[^=]
+){$h}(\\s|$)/m",
+ $text = preg_replace( "/^{$h}(
.
+){$h}(\\s|$)/m",
"<h{$i}>\\1</h{$i}>\\2", $text );
}
return $text;