本地搭建了gitbook,但是报错
Error: Cannot find module 'prismjs/components/prism-mermaid.js'
在启动的gitbook文件夹中编写book.js安装mermaid插件,
添加:
"plugins": [
"mermaid-gb3"
]
执行git install再执行git serve .:
GitBook version: 3.2.3的流程图渲染插件改变了:
info: loading plugin "mermaid-gb3"... OK
访问localhost:4000,流程图展示正确。