Giter Club home page Giter Club logo

format-md's Introduction

介绍

在写md文档的过程中,难免会遇到一些英文单词,为了给读者更好的阅读体验,我们都会给英文加上反引号,以突出显示,但是有时候可能会忘记,或者英文太多了,格式化比较麻烦,所以就有了这个工具。

安装

npm i krystal -g

使用

提示命令

krystal -h

命令说明

  • -V 显示版本
  • -s [源路径]
  • -d [目标路径] 如果不提供该参数,默认覆盖源文件
  • -p 英文两边是否添加空格,默认false

eg

krystal -s demo.md -d dest.md

上面的命令会格式化demo.md里面的英文,并生成dest.md文件

krystal -s demo.md -d dest.md -p

上述命令,会在格式化的时候,在英文两边添加空格

krystal -s demo.md 

上述命令会在格式化之后,覆盖demo.md

format-md's People

Watchers

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