-
Notifications
You must be signed in to change notification settings - Fork 1
Commands Render
packy edited this page Jun 18, 2026
·
1 revision
将 Markdown 渲染为 HTML 并保存到本地,不调用微信 API。支持排版主题和代码高亮切换。
wx-newspic render --md article.md --output preview.html --open
wx-newspic render --md article.md --theme orangeheart --hl-theme dracula --open| 参数 | 必填 | 默认值 | 说明 |
|---|---|---|---|
--md, -m |
是 | — | Markdown 文件路径 |
--output, -o |
否 | {文件名}.html |
输出 HTML 文件路径 |
--theme |
否 | default |
排版主题 |
--hl-theme |
否 | github-dark |
代码高亮主题,如 dracula、atom-one-dark
|
--theme-file, -f |
否 | — | 自定义主题 CSS 文件路径(需同时指定 --theme <名称>) |
--open, -O |
否 | — | 渲染后用默认浏览器打开 |