@compilelife/reheader
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

这是一个用于给markdown文件的标题自动编号的工具

This is a handy tool to smartly add chapter numbers to markdown headers

Usage

你可以把它当shell工具使用:

You can use it as a shell tool

npm i -g @compilelife/reheader

reheader /path/to/your/file.md

或者是用在项目里

or, in project:

npm i -S @compilelife/reheader
const reheader = require('@compilelife/reheader')

console.log(reheader('# h1'))
//# 1. h1

Todo

  • [ ] support Setext-style headers
  • [ ] support various number style
  • [ ] plugin for vscode

Readme

Keywords

Package Sidebar

Install

npm i @compilelife/reheader

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

6.2 kB

Total Files

16

Last publish

Collaborators

  • compilelife