From 73d2a7ac44730e95bcae9e8887c42c0628ca3c67 Mon Sep 17 00:00:00 2001 From: Eduard Veit Date: Mon, 13 Sep 2021 20:32:40 +0200 Subject: [PATCH] =?UTF-8?q?dev:=20=E2=9C=A8=20add=20pre-commit=20hooks=20f?= =?UTF-8?q?or=20markdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 043b8a4..78fce3e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,4 +8,18 @@ repos: - "-l" # list files whose formatting differs from shfmt's - "-i 2" # indent: 0 for tabs (default), >0 for number of spaces - "-ci" # switch cases will be indented - - "-w" # write result to file instead of stdout \ No newline at end of file + - "-w" # write result to file instead of stdout + - repo: https://github.com/executablebooks/mdformat + rev: 0.7.9 + hooks: + - id: mdformat + additional_dependencies: + - mdformat-gfm # GitHub Flavored Markdown support + - repo: https://codeberg.org/frnmst/md-toc + rev: 8.0.1 # or a specific git tag from md-toc + hooks: + - id: md-toc + args: + - "--in-place" + - "github" + - "--header-levels 6" \ No newline at end of file