Giter Site home page Giter Site logo

tools's Introduction

存放一些小工具

markdown_unused_pic_delete

本程序用于批量删除markdown文档图片文件夹中未使用的图片,仅适用于一个md文档对应一个图片文件夹的情况,默认路径格式为md文档与其图片文件夹同名,如下所示

- folder
  - test1.md
  - test2.md
  - test1
  - test2

脚本使用方法:

将脚本文件移动到目标文件所在目录或上级目录,在命令行中执行以下命令:

./markdown_unused_pic_delete.py -i <inputfile> [-r]

示例:
仅处理test.md:./markdown_unused_pic_delete.py -i test.md
处理当前目录下的所有md文档:./markdown_unused_pic_delete.py -i *.md
处理当前目录及所有子目录下的md文档:./markdown_unused_pic_delete.py -r -i *.md

markdown_title_level_modify

本程序用于批量调整markdown文档的标题等级,支持同时提高或降低一级。使用前需配置markdown文件所在路径

''''''
if __name__ == '__main__':
    root_path = 'C:\\Users\\Dawnyh\\Desktop\\杂记'
''''''

tools's People

Contributors

sku2k 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.