stars for list items
git-svn-id: file:///home/shish/svn/shimmie2/trunk@670 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
06aa7a266c
commit
ab682e87ee
@ -30,6 +30,8 @@ class BBCode extends Extension {
|
|||||||
$text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "<ul>\\1</ul>", $text);
|
$text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "<ul>\\1</ul>", $text);
|
||||||
$text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "<ol>\\1</ol>", $text);
|
$text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "<ol>\\1</ol>", $text);
|
||||||
$text = preg_replace("/\[li\](.*?)\[\/li\]/s", "<li>\\1</li>", $text);
|
$text = preg_replace("/\[li\](.*?)\[\/li\]/s", "<li>\\1</li>", $text);
|
||||||
|
$text = preg_replace("#\[\*\]#s", "<li>", $text);
|
||||||
|
$text = preg_replace("#<br><(li|ul|ol|/ul|/ol)>#s", "<\\1>", $text);
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,6 +54,7 @@ class BBCode extends Extension {
|
|||||||
$text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "\\1", $text);
|
$text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "\\1", $text);
|
||||||
$text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "\\1", $text);
|
$text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "\\1", $text);
|
||||||
$text = preg_replace("/\[li\](.*?)\[\/li\]/s", "\\1", $text);
|
$text = preg_replace("/\[li\](.*?)\[\/li\]/s", "\\1", $text);
|
||||||
|
$text = preg_replace("/\[\*\](.*?)/s", "\\1", $text);
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,10 @@ BLOCKQUOTE {
|
|||||||
background: #DDD;
|
background: #DDD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UL {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* the navigation bar, and all its blocks *
|
* the navigation bar, and all its blocks *
|
||||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user