diff --git a/Application/Home/Controller/PageController.class.php b/Application/Home/Controller/PageController.class.php index a37085260..24d54a3f7 100644 --- a/Application/Home/Controller/PageController.class.php +++ b/Application/Home/Controller/PageController.class.php @@ -14,7 +14,8 @@ public function index(){ return; } $Parsedown = new \Parsedown(); - $page['page_content'] = $Parsedown->text(htmlspecialchars_decode($page['page_content'])); + $page['page_md_content'] = $page['page_content']; + //$page['page_html_content'] = $Parsedown->text(htmlspecialchars_decode($page['page_content'])); $this->assign("page" , $page); $this->display(); } diff --git a/Application/Home/View/Page/index.html b/Application/Home/View/Page/index.html index b83bba00b..03be08b6f 100644 --- a/Application/Home/View/Page/index.html +++ b/Application/Home/View/Page/index.html @@ -1,18 +1,33 @@ - +

{$page.page_title}

-
- -{$page.page_content} - -
- +
+ - - \ No newline at end of file + + + + + + + + + + + diff --git a/composer.json b/composer.json index 8beb48104..e38459788 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "description": "ShowDoc is a tool greatly applicable for an IT team to share documents online", "keywords": ["showdoc","documents","Api"], "homepage": "https://github.com/star7th/showdoc", - "version":"v1.0.5", + "version":"v1.1.0", "license": "Apache-2.0", "authors": [ {