umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.51k stars 1.17k forks source link

feat: 完善 Markdown unified 处理 #2145

Open Wxh16144 opened 1 month ago

Wxh16144 commented 1 month ago

What problem does this feature solve?

目前这部分代码处理 description 有些简陋,应该支持和普通 md 文件一样。

相关问题:

  1. antd 的 demo 中的描述代码高亮丢失
image
  1. https://github.com/ant-design/ant-design/pull/49501 处理全局链接, antd 写了自定义 remark 插件,但是无法处理 description 时未应用这部分处理逻辑

Possible Solution (optional)

No response

PeachScript commented 1 month ago

有意简化处理的,不然很容易出现无限套娃;先加一下 rehypeEnhancedTag