将WordPress中文章导出为MarkDown文件

Node.js安装

导出插件安装过程

导出需要使用到wordpress-to-markdown工具

git clone https://github.com/ytechie/wordpress-to-markdown.git
npm install xml2js to-markdown

wordpress将文章导出为xml更名export.xml放置在wordpress-to-markdown目录下

node convert.js

如果需要直接导入hexo也可以用该工具:
https://hexo.io/zh-cn/docs/migration.html

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注