Giter Site home page Giter Site logo

html2md's Introduction

html2md

应该不会有多少人遇到这种情况

hexo搭建的博客本地文件丢失后,只能从服务器的html文件转换回来。 目前脚本只是实现了butterfly主题的文章页面配置恢复,后续看情况补充正文(文章不多可以直接手动复制)

使用教程

将服务器中文章html文件下载下来,存放到一个文件夹内

将需要恢复的md文件放置于old_blog文件夹,如图:

直接运行脚本即可。

如果主题不同,需要看情况修改正则表达式和脚本中 standard 变量内容。

图床迁移

就是一个简单的替换文本的脚本,根据自己图床来调整变量即可。

效果

我这里是直接爬下来的,所以自带title,后续补上脚本

恢复后:

html2md's People

Contributors

shanguwei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.