https://github.com/linusling/wechat-format-cli
微信公众号排版编辑器cli,一行命令生成公众号内容
https://github.com/linusling/wechat-format-cli
articles cli editor html markdown wechat wechat-format-cli wechat-official-account
Last synced: 10 months ago
JSON representation
微信公众号排版编辑器cli,一行命令生成公众号内容
- Host: GitHub
- URL: https://github.com/linusling/wechat-format-cli
- Owner: LinusLing
- Created: 2019-07-04T10:59:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-06-03T06:23:26.000Z (about 1 year ago)
- Last Synced: 2025-08-20T16:49:21.900Z (10 months ago)
- Topics: articles, cli, editor, html, markdown, wechat, wechat-format-cli, wechat-official-account
- Language: JavaScript
- Homepage:
- Size: 83 KB
- Stars: 38
- Watchers: 0
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 微信公众号排版编辑器 (wechat-format-cli)
转化 Markdown 到给微信特制的 HTML(受 [微信公众号排版编辑器](https://github.com/lyricat/wechat-format) 的启发,刚好自己又有这个需求)
## 如何使用
> 前提:确保已经安装 npm。[如何安装 npm(安装 node.js 会自带 npm)](http://www.runoob.com/nodejs/nodejs-install-setup.html)
> 1.1.0 版本起已依赖 puppeteer,若安装失败可以参考[这里](https://github.com/cnpm/cnpmjs.org/issues/1246#issuecomment-359148058)
#### 原始方法
1. 打开 Terminal
2. 执行如下脚本
npm install wechat-format-cli && cd ./node_modules/wechat-format-cli && npm start your_md_path.md
3. Ctrl/Command + V 到微信公众号编辑器
#### 全局方法
1. 安装:`npm install wechat-format-cli -g`
2. 打开命令行执行:`wechat-format-cli [your_md_path.md]`
3. Ctrl/Command + V 到微信公众号编辑器
## CHANGELOG
1.1.3
1. 修复执行完 Copy 操作但无内容的 bug
1.1.2
1. 支持全局安装
1.1.0
1. 利用 puppeteer 实现复制 html,替换原来纯文本带标签的方式
## 优点
- 继承了[微信公众号排版编辑器](https://github.com/lyricat/wechat-format)的优点(当然也有 bug。。)
- 不需要网页编辑
- 生成后的微信特制 HTML 直接复制到粘贴板,打开微信公众号编辑器直接粘贴
- 可以为**[微信公众号的自动发布文章](https://github.com/LinusLing/WeChatMediaPlatformAutomation)**提供内容
## 关于我
我是 Linus。如果你喜欢我的工具,可以:
- 给这个项目加星 https://github.com/LinusLing/wechat-format-cli