[email protected]115 downloadsPublish Markdown notes to multiple WeChat Official Accounts.
Publish Markdown notes to the draft boxes of multiple WeChat Official Accounts from Obsidian.
Desktop only: Windows, macOS, and Linux
Download the latest GitHub release, then place main.js, manifest.json, and styles.css in:
.obsidian/plugins/wechat-multi-publisher/
Enable WeChat Multi Publisher in Obsidian under Settings → Community plugins.
The plugin contacts the WeChat Official Account API only when you test an account, check its status, upload media, or create a draft. Proxy tests may contact api.ipify.org. Article content and images are not sent to servers controlled by the plugin author. Credentials are stored with Obsidian SecretStorage and are not written to data.json.
一款 Obsidian 插件,支持将 Markdown 笔记批量发布到多个微信公众号草稿箱。
支持 Windows / macOS / Linux 桌面端
.obsidian/plugins/wechat-multi-publisher/ 目录.obsidian/plugins/wechat-multi-publisher/
├── main.js # 插件主文件
├── styles.css # 插件样式
├── manifest.json # 插件元数据
└── data.json # 运行时配置(自动生成,勿手动编辑)
内置主题已打包进 main.js,安装 Release 中的三个文件即可使用;仓库内的 themes/ 是主题源文件。
插件自带 13 款排版主题,开箱即用。你也可以添加自定义主题:
css-themes/).css 文件或包含 CSS 代码块的 .md 文件CSS 文件格式:
直接使用 .css 文件,或者在 .md 文件中用代码块包裹:
# 我的自定义主题
```css
h1 {
color: #333;
border-bottom: 2px solid #07C160;
}
p {
line-height: 1.8;
color: #555;
}
```
文章会发布到公众号的草稿箱中,你可以在微信公众平台中进一步编辑和发布。
| 主题名称 | 风格描述 |
|---|---|
| Apple极简-黑 | 苹果风格极简排版,黑色主调 |
| 清水极简-黑 | 清爽简约风格 |
| Nikkei-红 | 日经新闻风格,红色点缀 |
| 流光底线-金蓝 | 金蓝渐变底线装饰 |
| 层级书签-蓝 | 书签式层级标题,蓝色系 |
| 浮雕卡片-靛蓝 | 卡片式浮雕效果 |
| 霓虹暗底-青紫 | 暗色背景霓虹风格 |
| 书刊居中-酒红 | 书刊式居中排版 |
| 渐隐底线-粉紫 | 渐隐底线装饰,粉紫色系 |
| 胶囊药丸-绿 | 胶囊标签风格 |
| 报刊夹线-红 | 报纸夹线风格 |
| 荧光马克-绿 | 荧光笔标记效果,绿色 |
| 荧光马克-蓝 | 荧光笔标记效果,蓝色 |
data.json插件只在你测试账号、检测状态或发布草稿时请求微信公众平台 API;测试代理或查看出口 IP 时会请求 api.ipify.org。若配置代理,相应请求会经过该代理。文章正文和图片不会上传到作者控制的服务器。
npm install
npm run build
构建会生成 Obsidian 运行所需的 main.js。提交问题前请阅读 CONTRIBUTING.md;安全问题请按 SECURITY.md 的方式报告。