Skip to content

Commit

Permalink
Use mdformat instead of markdownlint and markdown-toc
Browse files Browse the repository at this point in the history
  • Loading branch information
rpdelaney committed May 23, 2023
1 parent d5e7a64 commit 136befd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
14 changes: 9 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@ repos:
- id: mixed-line-ending
- id: check-yaml

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.34.0
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: markdownlint
entry: markdownlint --ignore .github/*.md
- id: mdformat
name: fix markdown formatting with mdformat
types: [markdown]
additional_dependencies:
- mdformat-gfm
- mdformat-toc
- mdformat-frontmatter

- repo: https://github.com/trussworks/pre-commit-hooks
rev: v1.1.1
hooks:
- id: markdown-toc
- id: mdspell
- id: spelling-sort

Expand Down
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# Truss pre-commit hooks

<!-- toc -->

* [circleci-validate](#circleci-validate)
* [gen-docs](#gen-docs)
* [goreleaser-check](#goreleaser-check)
* [markdown-toc](#markdown-toc)
* [mdspell](#mdspell)
* [spelling-sort](#spelling-sort)
* [hadolint](#hadolint)

<!-- Regenerate with "pre-commit run -a markdown-toc" -->

<!-- tocstop -->
<!-- mdformat-toc start --slug=github --no-anchors --maxlevel=3 --minlevel=1 -->

- [Truss pre-commit hooks](#truss-pre-commit-hooks)
- [circleci-validate](#circleci-validate)
- [gen-docs](#gen-docs)
- [goreleaser-check](#goreleaser-check)
- [markdown-toc](#markdown-toc)
- [mdspell](#mdspell)
- [spelling-sort](#spelling-sort)
- [hadolint](#hadolint)

<!-- mdformat-toc end -->

## circleci-validate

Expand Down

0 comments on commit 136befd

Please sign in to comment.