We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c94dc3 commit eee43beCopy full SHA for eee43be
1 file changed
hooks/mdlink-check.sh
@@ -15,6 +15,8 @@ fi
15
16
# This is the recommended way to set the project root for properly resolving absolute paths. See
17
# https://github.com/tcort/markdown-link-check/issues/16 for more info.
18
+# markdown-link-check 3.10 introduced checking anchors, which does not work witihn the same file. See
19
+# https://github.com/tcort/markdown-link-check/issues/195
20
TMP_CONFIG="$(mktemp)"
21
cat > "$TMP_CONFIG" <<EOF
22
{
@@ -23,7 +25,12 @@ cat > "$TMP_CONFIG" <<EOF
23
25
"pattern": "^/",
24
26
"replacement": "file://$(pwd)/"
27
}
- ]
28
+ ],
29
+ "ignorePatterns": [
30
+ {
31
+ "pattern": "^#"
32
+ }
33
+ ]
34
35
EOF
36
0 commit comments