Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(clinet): use cherry-markdown's TOC component #677

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

RSS1102
Copy link
Collaborator

@RSS1102 RSS1102 commented Dec 27, 2023

No description provided.

@RSS1102 RSS1102 merged commit 8b3f4b1 into Tencent:dev Dec 27, 2023
2 checks passed
@RSS1102 RSS1102 deleted the dev branch December 27, 2023 12:15
@@ -194,7 +193,8 @@ const initCherryMarkdown = () => {
],
toolbarRight: ['fullScreen', '|'],
bubble: ['bold', 'italic', 'underline', 'strikethrough', 'sub', 'sup', 'quote', 'ruby', '|', 'size', 'color'], // array or false
sidebar: ['mobilePreview', 'copy', 'theme',],
sidebar: ['mobilePreview', 'copy', 'theme'],
toc: true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    toc: false, // 不展示悬浮目录
    // toc: {
    //   updateLocationHash: false, // 要不要更新URL的hash
    //   defaultModel: 'full', // pure: 精简模式/缩略模式,只有一排小点; full: 完整模式,会展示所有标题
    // },

这个配置没有true这个配置

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

啊这。。 toc: false, // 不展示悬浮目录toc: true不就是显示嘛?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

sunsonliu added a commit that referenced this pull request Jan 3, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants