aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2012-02-12 12:00:23 -0800
committerAbinoam P. Marques Jr <abinoam@gmail.com>2012-02-12 12:00:23 -0800
commit6a17a3a8e249a11b55122de92f999876860b2b6f (patch)
tree8215d2b8c6c1ea5c6fdf2633f23f5bd84ca7cce6 /include/bbcode.php
parent5479142efca1fff08f2d60dc5a723b5d0842548b (diff)
downloadvolse-hubzilla-6a17a3a8e249a11b55122de92f999876860b2b6f.tar.gz
volse-hubzilla-6a17a3a8e249a11b55122de92f999876860b2b6f.tar.bz2
volse-hubzilla-6a17a3a8e249a11b55122de92f999876860b2b6f.zip
Added support for [ol] standard ordered list bbcode.
Diffstat (limited to 'include/bbcode.php')
-rwxr-xr-xinclude/bbcode.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 5d9665be5..7133a1a34 100755
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -126,6 +126,8 @@ function bbcode($Text,$preserve_nl = false) {
,$Text);
$Text = preg_replace("/\[list=\](.*?)\[\/list\]/ism", '<ul class="listnone" style="list-style-type: none;">$1</ul>' ,$Text);
$Text = preg_replace("/\[list=1\](.*?)\[\/list\]/ism", '<ul class="listdecimal" style="list-style-type: decimal;">$1</ul>' ,$Text);
+ $Text = preg_replace("/\[ol\](.*?)\[\/ol\]/ism", '<ul class="listdecimal" style="list-style-type: decimal;">$1</ul>'
+,$Text);
$Text = preg_replace("/\[list=((?-i)i)\](.*?)\[\/list\]/ism",'<ul class="listlowerroman" style="list-style-type:
lower-roman;">$2</ul>' ,$Text);
$Text = preg_replace("/\[list=((?-i)I)\](.*?)\[\/list\]/ism", '<ul class="listupperroman" style="list-style-type: