wordpress(XML)转markdown
为什么要XML转MD
下载Node.js
能玩这个的,应该都安装过了
从wordpress下载XML
登陆wordpress后台 选 工具 –> 导出
<p>解决:git SSL certificate problem: unable to get local issuer certificate</p> <p>错误: git SSL certificate problem: unable to get local issuer certificate<br> 这个问题是由于没有配置信任的服务器HTTPS验证。默认,cURL被设为不信任任何CAs,就是说,它不信任任何服务器验证。</p>
$ git config --global http.sslVerify false
$ git clone https://github.com/ytechie/wordpress-to-markdown.git
$ cd wordpress-to-markdown/
$ npm install xml2js to-markdownCopy your Wordpress content export into the folder as export.xml. Then run the script
$ node convert.js标题中有: