Skip to content

Commit

Permalink
update cherry-markdown and update editormd code block style (#888)
Browse files Browse the repository at this point in the history
* fix: first open document, cherryMarkdown not have theme

* fix: modify prismjs style and improve image clarity

* update cherry-markdown

* optimiztion: cherry-markdown

* feat: cherry-markdown add auto-save and update icon

---------

Co-authored-by: zhangsheng.93 <zhangsheng.93@bytedance.com>
  • Loading branch information
jh244212647 and zhangsheng.93 authored Aug 21, 2023
1 parent 5011aa9 commit 2e3aebe
Show file tree
Hide file tree
Showing 13 changed files with 88,350 additions and 80,994 deletions.
4 changes: 4 additions & 0 deletions controllers/DocumentController.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ func (c *DocumentController) Index() {
c.Data["Description"] = utils.AutoSummary(doc.Release, 120)
c.Data["FoldSetting"] = "first"

if bookResult.Editor == EditorCherryMarkdown {
c.Data["MarkdownTheme"] = doc.MarkdownTheme
}

if bookResult.IsDisplayComment {
// 获取评论、分页
comments, count, _ := models.NewComment().QueryCommentByDocumentId(doc.DocumentId, 1, conf.PageSize, c.Member)
Expand Down
Loading

0 comments on commit 2e3aebe

Please sign in to comment.