stars for list items

git-svn-id: file:///home/shish/svn/shimmie2/trunk@670 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-12-20 10:33:02 +00:00
parent 06aa7a266c
commit ab682e87ee
2 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,8 @@ class BBCode extends Extension {
$text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "<ul>\\1</ul>", $text);
$text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "<ol>\\1</ol>", $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;
}
@ -52,6 +54,7 @@ class BBCode extends Extension {
$text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "\\1", $text);
$text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "\\1", $text);
$text = preg_replace("/\[li\](.*?)\[\/li\]/s", "\\1", $text);
$text = preg_replace("/\[\*\](.*?)/s", "\\1", $text);
return $text;
}
}

View File

@ -65,6 +65,10 @@ BLOCKQUOTE {
background: #DDD;
}
UL {
text-align: left;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* the navigation bar, and all its blocks *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */