From 6a82ff871f56233756c2036d307e5cfffbfab325 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Thu, 4 Aug 2016 19:45:35 -0400 Subject: Parse bbcode when page loads --- include/wiki.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/wiki.php') 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) { -- cgit v1.2.3