仓库地址 twibiral/obsidian-execute-code: Obsidian Plugin to execute code in a note.
注意以下几点:
a. 需要配置运行环境地址,例如运行js需要node环境
bash
➜ ~ which node
/usr/local/bin/node
➜ ~ which node
/usr/local/bin/node
b. 阅读视图
才可以运行代码,点击右上角可进行切换