lane_0x

Results 2 comments of lane_0x

@Jinbao1001 感谢,我尝试在配置文件.dumirc.ts里增加如下: export default defineConfig({ **extraRehypePlugins:[ require('rehype-mermaid'), ],** ##其他配置.. run时 报错: [cause]: Error [ERR_REQUIRE_ESM]: require() of ES Module /home/fire/5-6/spin/node_modules/.pnpm/[email protected]/node_modules/rehype-mermaid/dist/rehype-mermaid.js from /home/fire/5-6/spin/.dumirc.ts not supported. 不知道如何正确配置使得dumi2.4.18工作

@Jinbao1001 试过了 ![Image](https://github.com/user-attachments/assets/ce44e084-4bc1-4709-acd6-86ee398cfbbd) run起来后 页面无法识别mermaid指令 无法渲染 按普通文档显示。 ![Image](https://github.com/user-attachments/assets/08ce7a34-bb80-4412-8923-d07c583dfc01) 确定是这个extraRehypePlugins插件配置接口吗