mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-12-19 19:57:09 +08:00
1、实现标签功能
2、实现删除用户,当删除一个用户时,该用户的所有信息将转义到超级管理员账户上
This commit is contained in:
@@ -26,6 +26,7 @@ import (
|
||||
"github.com/lifei6671/mindoc/models"
|
||||
"github.com/lifei6671/mindoc/utils"
|
||||
"github.com/lifei6671/mindoc/utils/wkhtmltopdf"
|
||||
"github.com/russross/blackfriday"
|
||||
)
|
||||
|
||||
//DocumentController struct.
|
||||
@@ -126,7 +127,7 @@ func (c *DocumentController) Index() {
|
||||
c.Data["Model"] = bookResult
|
||||
c.Data["Result"] = template.HTML(tree)
|
||||
c.Data["Title"] = "概要"
|
||||
c.Data["Content"] = bookResult.Description
|
||||
c.Data["Content"] = template.HTML( blackfriday.MarkdownBasic([]byte(bookResult.Description)))
|
||||
}
|
||||
|
||||
//阅读文档.
|
||||
|
||||
Reference in New Issue
Block a user