GeekEast / blog_comment

0 stars 0 forks source link

Create TOC for Markdown by Doctoc and Husky | 雪中印 #121

Open GeekEast opened 5 years ago

GeekEast commented 5 years ago

https://geekeast.github.io/createmarkdowntoc.html

Pre: npm & yarn Init npm init -y Install yarn add --dev husky doctoc Appednd package.json 12345"husky": { "hooks": { "pre-commit": "yarn doctoc README.md --github --title \"## Tabl

GeekEast commented 5 years ago
"husky": {
  "hooks": {
    "pre-commit": "yarn doctoc . --github --title \"## Table Of Content\" && git add -A"
  }
}