aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
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 /Zotlabs/Module
parent05a9f0aa1473e155c7f0ac27ef733bf174e49abd (diff)
downloadvolse-hubzilla-6a82ff871f56233756c2036d307e5cfffbfab325.tar.gz
volse-hubzilla-6a82ff871f56233756c2036d307e5cfffbfab325.tar.bz2
volse-hubzilla-6a82ff871f56233756c2036d307e5cfffbfab325.zip
Parse bbcode when page loads
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Wiki.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index 2e3dbb673..24a0b6e1c 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -142,8 +142,8 @@ class Wiki extends \Zotlabs\Web\Controller {
}
$content = ($p['content'] !== '' ? htmlspecialchars_decode($p['content'],ENT_COMPAT) : '"# New page\n"');
// Render the Markdown-formatted page content in HTML
- require_once('library/markdown.php');
- $html = wiki_generate_toc(purify_html(Markdown(json_decode($content))));
+ require_once('library/markdown.php');
+ $html = wiki_generate_toc(purify_html(Markdown(wiki_bbcode(json_decode($content)))));
$renderedContent = wiki_convert_links($html,argv(0).'/'.argv(1).'/'.$wikiUrlName);
$hide_editor = false;
$showPageControls = $wiki_editor;