Compare commits

...

2 Commits

2 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,7 @@ repos:
rev: v2.2.0 rev: v2.2.0
hooks: hooks:
- id: doctoc - id: doctoc
args: [--update-only] args: [--update-only, --notitle]
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.9-for-vscode" rev: "v3.0.0-alpha.9-for-vscode"
hooks: hooks:

View File

@ -7,10 +7,17 @@ For pre-commit configuration see `./.pre-commit-config.yaml`
To enable it at a specific position, throw in: To enable it at a specific position, throw in:
```markdown ```markdown
<!-- prettier-ignore-start -->
<!-- START doctoc --> <!-- START doctoc -->
<!-- END doctoc --> <!-- END doctoc -->
<!-- prettier-ignore-end -->
``` ```
- https://github.com/thlorenz/doctoc/blob/master/README.md#specifying-location-of-toc
- https://github.com/thlorenz/doctoc/wiki/Using-doctoc-in-projects-cleaned-by-prettier
<!-- <!--
vim: filetype=markdown textwidth=78 vim: filetype=markdown textwidth=78
--> -->