Skip to content

将博客园的备份文件一键转成单个markdown文件

Notifications You must be signed in to change notification settings

52fhy/cnblogs-to-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cnblogs-to-markdown

说明:必须本身是Markdown格式的转换后才是markdown。暂不支持html转markdown。

1、导出博客园备份文件,例如:CNBlogs_BlogBackup_131_201408_201712.xml
2、下载overtrue/pinyin插件,用于标题转换为拼音:

composer init
composer require overtrue/pinyin

3、运行命令:

php parse.php

4、效果:

$ ls docs
2014/  2015/  2016/  2017/

$ ls docs/2017/
2017-01-04-PHP-ri-zhi-ya-suo-xia-zai.md
2017-01-04-Python-xue-xi-03-bian-liang-lei-xing.md
2017-01-05-Python-xue-xi-04-tiao-jian-kong-zhi-yu-xun-huan-jie-gou.md
2017-01-06-Python-xue-xi-05-han-shu.md
2017-01-07-Python-xue-xi-06-qie-pian.md
2017-01-09-Python-xue-xi-07-die-dai-qi-sheng-cheng-qi.md
2017-01-11-Python-xue-xi-08-han-shu-shi-bian-cheng.md
2017-01-12-Python-xue-xi-09-mo-kuai.md

About

将博客园的备份文件一键转成单个markdown文件

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages