aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
author <tomwie@users.sourceforge.net>2015-01-14 22:47:54 +0100
committer <tomwie@users.sourceforge.net>2015-01-14 22:47:54 +0100
commit09129cbe5f7e8cb331b68469b74438464960af0b (patch)
tree7e7a2cceec6f739032381f5141f2e7002a96530a /include/bbcode.php
parent43b877caa1381c2ac8a031751acd2dab3ec739f0 (diff)
downloadvolse-hubzilla-09129cbe5f7e8cb331b68469b74438464960af0b.tar.gz
volse-hubzilla-09129cbe5f7e8cb331b68469b74438464960af0b.tar.bz2
volse-hubzilla-09129cbe5f7e8cb331b68469b74438464960af0b.zip
Added a table of content as bbcode element [toc] for webpages
- Included jquery.toc.js (http://www.apache.org/licenses/LICENSE-2.0) - Modified jquery.toc.js to work with the webpages of the red#matrix - Added info to the help
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 441c4cc5c..33017c011 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -575,7 +575,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
if (strpos($Text,'[h6]') !== false) {
$Text = preg_replace("(\[h6\](.*?)\[\/h6\])ism",'<h6>$1</h6>',$Text);
}
- // Check for h6
+ // Check for table of content
if (strpos($Text,'[toc]') !== false) {
$Text = preg_replace("/\[toc\]/ism",'<ul id="toc"></ul>',$Text);
}