titled wiki links
git-svn-id: file:///home/shish/svn/shimmie2/trunk@858 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
62f6354368
commit
1cb91a9e4b
1 changed files with 4 additions and 2 deletions
|
@ -18,7 +18,8 @@ class BBCode extends Extension {
|
||||||
$text = preg_replace("/>>([^\d].+)/", "<blockquote><small>\\1</small></blockquote>", $text);
|
$text = preg_replace("/>>([^\d].+)/", "<blockquote><small>\\1</small></blockquote>", $text);
|
||||||
$text = preg_replace("/\[url=((?:https?|ftp|irc):\/\/.*?)\](.*?)\[\/url\]/s", "<a href='\\1'>\\2</a>", $text);
|
$text = preg_replace("/\[url=((?:https?|ftp|irc):\/\/.*?)\](.*?)\[\/url\]/s", "<a href='\\1'>\\2</a>", $text);
|
||||||
$text = preg_replace("/\[url\]((?:https?|ftp|irc):\/\/.*?)\[\/url\]/s", "<a href='\\1'>\\1</a>", $text);
|
$text = preg_replace("/\[url\]((?:https?|ftp|irc):\/\/.*?)\[\/url\]/s", "<a href='\\1'>\\1</a>", $text);
|
||||||
$text = preg_replace("/\[\[(.*?)\]\]/s", "<a href='".make_link("wiki/\\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 = str_replace("\n", "\n<br>", $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", "<blockquote><small>\\1</small></blockquote>", $text);
|
||||||
$text = preg_replace("/\[quote=(.*?)\](.*?)\[\/quote\]/s", "<small><small>Quoting \\1</small></small><blockquote><small>\\2</small></blockquote>", $text);
|
$text = preg_replace("/\[quote=(.*?)\](.*?)\[\/quote\]/s", "<small><small>Quoting \\1</small></small><blockquote><small>\\2</small></blockquote>", $text);
|
||||||
|
@ -44,7 +45,8 @@ class BBCode extends Extension {
|
||||||
$text = preg_replace("/\[code\](.*?)\[\/code\]/s", "\\1", $text);
|
$text = preg_replace("/\[code\](.*?)\[\/code\]/s", "\\1", $text);
|
||||||
$text = preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/s", "\\2", $text);
|
$text = preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/s", "\\2", $text);
|
||||||
$text = preg_replace("/\[url\](.*?)\[\/url\]/s", "\\1", $text);
|
$text = preg_replace("/\[url\](.*?)\[\/url\]/s", "\\1", $text);
|
||||||
$text = preg_replace("/\[\[(.*?)\]\]/s", "\\1", $text);
|
$text = preg_replace("/\[\[([^\|\]]+)\|([^\]]+)\]\]/s", "\\2", $text);
|
||||||
|
$text = preg_replace("/\[\[([^\]]+)\]\]/s", "\\1", $text);
|
||||||
$text = preg_replace("/\[quote\](.*?)\[\/quote\]/s", "", $text);
|
$text = preg_replace("/\[quote\](.*?)\[\/quote\]/s", "", $text);
|
||||||
$text = preg_replace("/\[quote=(.*?)\](.*?)\[\/quote\]/s", "", $text);
|
$text = preg_replace("/\[quote=(.*?)\](.*?)\[\/quote\]/s", "", $text);
|
||||||
$text = preg_replace("/\[h1\](.*?)\[\/h1\]/s", "\\1", $text);
|
$text = preg_replace("/\[h1\](.*?)\[\/h1\]/s", "\\1", $text);
|
||||||
|
|
Reference in a new issue