cherry-markdown icon indicating copy to clipboard operation
cherry-markdown copied to clipboard

添加目录在预览时的右侧[Feature Request]

Open FuAdmin opened this issue 1 year ago • 3 comments

Prerequisites

  • [ ] There isn't an existing issue that requests the same feature, to avoid duplicates.

Clear and concise description of the problem

可不可以在预览的时候添加目录 像这样 image

Suggested solution

No response

Further Information

No response

Contributing

None

FuAdmin avatar Nov 30 '23 09:11 FuAdmin

这个功能我们之前内部讨论认为比较属于业务需求,需要业务方利用cherry.getToc()等api来实现。。但刚仔细想想,似乎组件内实现也行,我们后面排期实现一下

sunsonliu avatar Nov 30 '23 12:11 sunsonliu

已实现并提交到dev分支,欢迎体验。

新增了悬浮目录的配置能力(默认不开启悬浮目录),具体配置如下: image

sunsonliu avatar Dec 15 '23 08:12 sunsonliu

https://tencent.github.io/cherry-markdown/examples/index.html

已发版,可以在这里体验

sunsonliu avatar Dec 18 '23 07:12 sunsonliu