aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-06-26 15:04:47 -0400
committerAndrew Manning <tamanning@zoho.com>2016-06-26 15:04:47 -0400
commitb96edd8b9ab86d84a2e67515a87de13f660d5cb1 (patch)
tree71887759835d882bc59e80d47c77d7547617d207 /Zotlabs/Module
parentdac3138fd1aa5e60f68c6b0ef59cbbc550d22def (diff)
downloadvolse-hubzilla-b96edd8b9ab86d84a2e67515a87de13f660d5cb1.tar.gz
volse-hubzilla-b96edd8b9ab86d84a2e67515a87de13f660d5cb1.tar.bz2
volse-hubzilla-b96edd8b9ab86d84a2e67515a87de13f660d5cb1.zip
Added table of contents generator. Table is inserted wherever [toc] is encountered.
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Wiki.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index de5863d2e..a11960b51 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -198,6 +198,7 @@ class Wiki extends \Zotlabs\Web\Controller {
$content = $_POST['content'];
$resource_id = $_POST['resource_id'];
require_once('library/markdown.php');
+ $content = wiki_generate_toc($content);
$html = purify_html(Markdown($content));
$w = wiki_get_wiki($resource_id);
$wikiURL = argv(0).'/'.argv(1).'/'.$w['urlName'];