dumi icon indicating copy to clipboard operation
dumi copied to clipboard

feat: 使用自定义锚点

Open thinkasany opened this issue 1 year ago • 2 comments

What problem does this feature solve?

希望能够支持自定义锚点功能,如 vitepress 这样子的效果。

https://vitepress.dev/zh/guide/markdown#custom-anchors

Image

antd 的语义化功能的二级分类,有时候跳过过来,如果能锚点定位到具体的 demo 会方便很多,但是目前默认点过来会变成 tag#tagcheckabletaggroup-1,如果遇到中文demo的话,就是更奇怪的名字了,在文档的维护上会比较麻烦。

Image

Possible Solution (optional)

No response

thinkasany avatar Mar 25 '25 06:03 thinkasany

我计划先在 antd 仓库自定义插件实现,dumi 这边需要开一个口子:https://github.com/umijs/dumi/pull/2268

我计划先在 antd 仓库自定义插件实现

https://github.com/ant-design/ant-design/pull/53316

Wxh16144 avatar Mar 25 '25 11:03 Wxh16144

Image

thinkasany avatar Mar 25 '25 12:03 thinkasany