multi-publisher 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **一行命令,Markdown 发布到全网。**
4
4
 
5
- 将排版好的 Markdown 文章一键发布到微信公众号、知乎、掘金、CSDN 等 20+ 平台,无需手动复制粘贴。支持浏览器自动登录获取 Cookie,12 套渲染主题,是内容创作者的效率神器。
5
+ 将排版好的 Markdown 文章一键发布到微信公众号、知乎、掘金、CSDN 等 20+ 平台,无需手动复制粘贴。支持浏览器自动登录获取 Cookie,14 套渲染主题,是内容创作者的效率神器。
6
6
 
7
7
  ---
8
8
 
@@ -13,6 +13,7 @@
13
13
  | **多平台支持** | 微信公众号、知乎、掘金、CSDN、微博、小红书、B站等 20+ 平台 |
14
14
  | **浏览器自动登录** | Playwright 驱动扫码/账号登录,Cookie 自动获取保存 |
15
15
  | **14 套渲染主题** | default、wechat、modern、minimal、cyberpunk、nord、paper、darkelite、sunset、zen、retro、midnight、brutalism、neumorphism |
16
+ | **自动封面图生成** | AI 根据标题生成封面图,自动上传到微信 CDN |
16
17
  | **Markdown 直发** | front-matter 元数据、代码高亮、LaTeX 公式 |
17
18
  | **CI/CD 友好** | 纯命令行无需浏览器,配置文件统一管理 |
18
19
  | **草稿箱发布** | 微信公众号 → 草稿箱,其他平台 → 各自草稿箱 |
@@ -95,6 +96,12 @@ mpub render -f article.md
95
96
 
96
97
  # 指定主题渲染
97
98
  mpub render -f article.md -t cyberpunk
99
+
100
+ # 自动封面图(文章无封面时 AI 生成)
101
+ mpub publish -f article.md -p weixin --auto-cover
102
+
103
+ # 指定封面图
104
+ mpub publish -f article.md -p weixin -c cover.jpg
98
105
  ```
99
106
 
100
107
  ---
@@ -199,14 +206,16 @@ pre { background: #f6f8fa; border-radius: 6px; }
199
206
 
200
207
  ### front-matter 元数据
201
208
 
209
+ > **重要**:front-matter 是必需的!缺少 front-matter 会导致标题显示为"无标题"。
210
+
202
211
  ```markdown
203
212
  ---
204
- title: 文章标题
205
- author: 作者名
206
- cover: https://example.com/cover.jpg # 封面图片 URL
207
- summary: 文章摘要(可选) # 微信作者留言摘要
208
- source_url: https://original.url # 原文链接(可选)
209
- tags: [技术, 前端, JavaScript] # 标签(可选)
213
+ title: 文章标题 # 必填,用于公众号标题
214
+ author: 作者名 # 必填
215
+ description: 文章描述(可选) # 用于公众号摘要
216
+ cover: https://example.com/cover.jpg # 可选,有 --auto-cover 可省略
217
+ source_url: https://original.url # 原文链接(可选)
218
+ tags: [技术, 前端, JavaScript] # 标签(可选)
210
219
  ---
211
220
 
212
221
  正文内容...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-publisher",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Markdown → 微信公众号 / 知乎 / 掘金等多平台 CLI 发布工具",
5
5
  "type": "module",
6
6
  "repository": {