Skip to content

Commit 27f49bd

Browse files
committed
chore(pre-commit): switch from markdownlint-cli to pymarkdown
Mostly to move towards not having a dependency on nodejs.
1 parent 04e4d91 commit 27f49bd

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

.markdownlint.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,14 @@ repos:
110110
types: [text]
111111
files: ^(helpers/perl|.+\.p[ml])$
112112

113-
- repo: https://github.com/igorshubovych/markdownlint-cli
114-
rev: v0.28.1
113+
- repo: https://github.com/jackdewinter/pymarkdown
114+
rev: 5fad490c01ec677ce189024821ba85dd931ce7dd
115115
hooks:
116-
- id: markdownlint
116+
- id: pymarkdown
117+
entry: pymarkdown
118+
args:
119+
- --config=.pymarkdown.json
120+
- scan
117121
exclude: ^CHANGELOG\.md$
118122

119123
- repo: https://github.com/pre-commit/pre-commit-hooks

.pymarkdown.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"plugins": {
3+
"first-line-heading": {
4+
"//": "Does not work with GitHub issue templates",
5+
"enabled": false
6+
},
7+
"no-inline-html": {
8+
"//": "https://github.com/jackdewinter/pymarkdown/issues/22",
9+
"enabled": false,
10+
"allowed_elements": "!--,kbd"
11+
},
12+
"ul-indent": {
13+
"//": "Disabled for lists in FAQ/A",
14+
"enabled": false
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)