Package Exports
- hexo-markmap
- hexo-markmap/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hexo-markmap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
English | 简体中文 |
依赖于 markmap,灵感来自 hexo-simple-mindmap
⚠️更新 1.0.5 版本修复
undefined
错误前不久上游 markmap-view 进行了一次大的版本更新,由于我之前的代码中未锁定版本导致视图显示错误,目前已经在最新版本修复,建议立刻更新并清理 hexo 缓存以修复此问题。
后续将对根据新版本更新调整。
hexo-markmap
在你的博客中使用markdown插入思维导图,使用markmap。
现已经支持 链接、代码块、markdown 语法的渲染! (Katex、多行代码暂不支持)
更多预览和说明见 我的博客.
安装
npm install hexo-markmap
或
yarn add hexo-markmap
使用
{% markmap height [depth] %}
参数
height
: 画布高度depth
: 可选,自动折叠层数深于depth
的节点
示例
{% markmap 300px %}
- Testa
- test1
- test2
- Testb
- test1
- test2
{%endmarkmap%}
配置文件
config.yml
pjax 修复
hexo_markmap:
pjax: true
如果你的博客安装了 pjax 请开启此项配置。