Install
openclaw skills install notes-export-api通过可配置的 notes-export-api 导出接口,把 Markdown 内容导出为锤子便签风格的长图 PNG。脚本会优先探测本地生产入口 `http://127.0.0.1:18080`,探测不到时再回退到 `https://notes.fangyuanxiaozhan.com/api/export`;如...
openclaw skills install notes-export-api直接调用导出 API 做便签导出,不在本地重写渲染逻辑。
开源地址:https://github.com/zhaoolee/notes
scripts/export_note.sh。--markdown-file 或 --markdown。--markdown-file,脚本会自动扫描 Markdown 内的本地图片引用:
<img src="./image.png" />/api/images/import 获取 URL,并把 Markdown 中的图片路径替换成可访问 URL。/api/export。--output。--theme;否则直接使用默认的 default(暖白纸感),不要为了主题再追问用户。http://127.0.0.1:18080/api/export;探测不到时回退到 https://notes.fangyuanxiaozhan.com/api/export。.env 或 skills/notes-export-api/.env 中设置:NOTES_EXPORT_API_BASE_URL=http://127.0.0.1:18080
# 或显式指定线上地址
NOTES_EXPORT_API_BASE_URL=https://notes.fangyuanxiaozhan.com
default: 暖白纸感。默认主题;调用方未声明时使用它。smartisan-dark: 锤子暗黑。仅在调用方明确要求暗色或暗黑主题时使用。skills/notes-export-api/scripts/export_note.sh \
--markdown-file /abs/path/to/note.md \
--output /abs/path/to/note.png
如果 note.md 中包含本地图片,例如:
## **0x01**
配图如下:

脚本会先上传 ./images/demo.png,再把 Markdown 中的图片链接替换成后端返回的 URL,最后导出 PNG。
skills/notes-export-api/scripts/export_note.sh \
--markdown '## **0x01**\n正文内容' \
--output /abs/path/to/note.png
skills/notes-export-api/scripts/export_note.sh \
--markdown-file /abs/path/to/note.md \
--theme smartisan-dark \
--output /abs/path/to/note-dark.png
--markdown-file 模式会自动处理本地图片;--markdown 内联文本模式不会解析相对路径图片,内联模式下请直接传可访问 URL。--theme 是可选参数;不传时默认使用 default。http://127.0.0.1:18080/api/export;若本地服务不可用,则回退到 https://notes.fangyuanxiaozhan.com/api/export。.env 中的 NOTES_EXPORT_API_BASE_URL 优先级高于自动探测结果。--endpoint 优先级仍然最高。.env 提供的是站点根地址,脚本会自动补上 /api/export。/api/export,图片导入地址会自动改为 /api/images/import。Markdown 文件的相对路径、绝对路径,以及 file:// 路径。