diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-06-26 15:27:55 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-06-26 15:27:55 -0400 |
commit | 216f034b6dd0d26282035218126d312080a9adc3 (patch) | |
tree | 6a323bee7f77e71cc974a1dc0bd3fcd7cbd278e0 /Zotlabs/Module | |
parent | b96edd8b9ab86d84a2e67515a87de13f660d5cb1 (diff) | |
download | volse-hubzilla-216f034b6dd0d26282035218126d312080a9adc3.tar.gz volse-hubzilla-216f034b6dd0d26282035218126d312080a9adc3.tar.bz2 volse-hubzilla-216f034b6dd0d26282035218126d312080a9adc3.zip |
Also generate table of contents when loading the page
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Wiki.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php index a11960b51..9b89ed967 100644 --- a/Zotlabs/Module/Wiki.php +++ b/Zotlabs/Module/Wiki.php @@ -126,6 +126,7 @@ class Wiki extends \Zotlabs\Web\Controller { $content = ($p['content'] !== '' ? $p['content'] : '"# New page\n"'); // Render the Markdown-formatted page content in HTML require_once('library/markdown.php'); + $content = wiki_generate_toc($content); $renderedContent = wiki_convert_links(Markdown(json_decode($content)),argv(0).'/'.argv(1).'/'.$wikiUrlName); $hide_editor = false; $showPageControls = $wiki_editor; |