wordpress(XML)转markdown

docs
wordpress
0 字 / 约 0 分钟
2025/8/17

wordpress(XML)转markdown

为什么要XML转MD

下载Node.js

能玩这个的,应该都安装过了

从wordpress下载XML

登陆wordpress后台 选 工具 --> 导出

解决:git SSL certificate problem: unable to get local issuer certificate

错误: git SSL certificate problem: unable to get local issuer certificate
这个问题是由于没有配置信任的服务器HTTPS验证。默认,cURL被设为不信任任何CAs,就是说,它不信任任何服务器验证。

bash
$ git config --global http.sslVerify false
$ git clone https://github.com/ytechie/wordpress-to-markdown.git
$ cd wordpress-to-markdown/
$ npm install xml2js to-markdown

Copy your Wordpress content export into the folder as export.xml. Then run the script

bash
$ node convert.js

标题中有: