obsidian-vuepress
使用 VuePress + obsidian 时,构建过程中使用脚本将一些 vuepress 不能识别不能渲染的格式转换成可以识别的格式。
因为用obsidian
写笔记,同时也同步到vuepress
上面,但是有些 markdown 格式并不通用,vuepress 不认识,不渲染,所以就有了这个项目,在 Github actions 中,vuepress 构建之前,将不渲染的那些格式转换为可以渲染的格式。
目前还没打包,直接复制到 vuepress 项目根目录。
- vuepress 博客
- vuepress-theme-hope 主题
- obsidian
- admonition 插件
admonition 提示块 | 转为 vuepress-theme-hope 提示块 |
---|---|
info | info |
abstract | info |
example | info |
note | note |
quote | note |
tip | tip |
success | tip |
warning | warning |
question | warning |
danger | danger |
failure | danger |
bug | danger |
目前只支持admonition
插件的以下三种格式
- 仅有标题
> [!success] obsidian-vuepress
>
- 仅有内容,无标题
> [!success]
> I'm obsidian-vuepress
- 有标题有内容
> [!success] obsidian-vuepress
> I'm obsidian-vuepress
python obsidian-vuepress.py src
# src 是我存放 markdown 源文件的目录
非常欢迎你的加入!提一个 Issue 或者提交一个 Pull Request。
遵循 Contributor Covenant 行为规范。
感谢以下参与项目的人:
MIT © yszar