doctoc.txt: add prettier range ignore, link to doctoc README & wiki

This commit is contained in:
Aminda Suomalainen 2023-05-13 09:25:36 +03:00
parent 6814a1e179
commit 92f2d8555d
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -7,10 +7,17 @@ For pre-commit configuration see `./.pre-commit-config.yaml`
To enable it at a specific position, throw in:
```markdown
<!-- prettier-ignore-start -->
<!-- START 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
-->