Skip to content

Commit

Permalink
fix(client): redeclare the 'toc' state (#678)
Browse files Browse the repository at this point in the history
* fix:#675 修复快捷提示选择问题 (#676)

LGTM

* refactor(client): use `cherry-markdown`'s TOC component (#677)

* fix(client): redeclare the 'toc' state

---------

Co-authored-by: QiWen <[email protected]>
Co-authored-by: sunsonliu <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2024
1 parent ac3650d commit 9216837
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/components/CherryMarkdown/cherry.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ const initCherryMarkdown = () => {
toolbarRight: ['fullScreen', '|'],
bubble: ['bold', 'italic', 'underline', 'strikethrough', 'sub', 'sup', 'quote', 'ruby', '|', 'size', 'color'], // array or false
sidebar: ['mobilePreview', 'copy', 'theme'],
toc: true,
toc: {
updateLocationHash: false,
defaultModel: 'pure',
},
customMenu: {
customMenu_fileUpload: customMenu_fileUpload,
},
Expand Down

0 comments on commit 9216837

Please sign in to comment.