aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-08-04 19:45:35 -0400
committerAndrew Manning <tamanning@zoho.com>2016-08-04 19:45:35 -0400
commit6a82ff871f56233756c2036d307e5cfffbfab325 (patch)
tree39accfd827de22b840dbc1fab9e31463dde5e994 /include
parent05a9f0aa1473e155c7f0ac27ef733bf174e49abd (diff)
downloadvolse-hubzilla-6a82ff871f56233756c2036d307e5cfffbfab325.tar.gz
volse-hubzilla-6a82ff871f56233756c2036d307e5cfffbfab325.tar.bz2
volse-hubzilla-6a82ff871f56233756c2036d307e5cfffbfab325.zip
Parse bbcode when page loads
Diffstat (limited to 'include')
-rw-r--r--include/wiki.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wiki.php b/include/wiki.php
index 494ff835e..d52308b08 100644
--- a/include/wiki.php
+++ b/include/wiki.php
@@ -495,6 +495,12 @@ function wiki_convert_links($s, $wikiURL) {
return $s;
}
+/**
+ * Replace the instances of the string [toc] with a list element that will be populated by
+ * a table of contents by the JavaScript library
+ * @param string $s
+ * @return string
+ */
function wiki_generate_toc($s) {
if (strpos($s,'[toc]') !== false) {