only allow two consecutive newlines
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1115 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
ae477a6d88
commit
6d5dfea492
@ -20,6 +20,7 @@ class BBCode implements Extension {
|
||||
$text = preg_replace("/\[url\]((?:https?|ftp|irc|mailto):\/\/.*?)\[\/url\]/s", "<a href=\"\\1\">\\1</a>", $text);
|
||||
$text = preg_replace("/\[\[([^\|\]]+)\|([^\]]+)\]\]/s", "<a href=\"".make_link("wiki/\\1")."\">\\2</a>", $text);
|
||||
$text = preg_replace("/\[\[([^\]]+)\]\]/s", "<a href=\"".make_link("wiki/\\1")."\">\\1</a>", $text);
|
||||
$text = preg_replace("/\n\s*\n/", "\n\n", $text);
|
||||
$text = str_replace("\n", "\n<br>", $text);
|
||||
$text = preg_replace("/\[quote\](.*?)\[\/quote\]/s", "<blockquote><small>\\1</small></blockquote>", $text);
|
||||
$text = preg_replace("/\[quote=(.*?)\](.*?)\[\/quote\]/s", "<small><small>Quoting \\1</small></small><blockquote><small>\\2</small></blockquote>", $text);
|
||||
|
Loading…
x
Reference in New Issue
Block a user