You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Alubb77
changed the title
@ice/pkg-plugin-docusaurus 能否支持代码代码preview功能,能否支持<CodeBlock>写法
@ice/pkg-plugin-docusaurus 代码preview功能,能否支持<CodeBlock>写法
Dec 31, 2024
背景:
使用@ice/pkg初始化一个monorepo格式的组件库,其中每个组件对应的调试代码位于 /dev/index,
在写文档时,因为文档预览代码与调试代码相同,要将调试代码复制一份到文档中,长期维护麻烦。
诉求:
希望预览功能支持导入代码片段能力。
调研:
根据 docusaurus 文档,支持导入代码块的能力,但是必须用 <CodeBlock 而不是简写 ```,但是预览功能未兼容<CodeBlock,因此期望预览能力可以支持<CodeBlock 写法,或者有其他导入代码片段的能力
https://docusaurus.io/zh-CN/docs/2.x/markdown-features/react#importing-code-snippets
ast树及对应判断代码
The text was updated successfully, but these errors were encountered: