Skip to content

Fix markdown-link-check errors from pre-commit #375

@jbampton

Description

@jbampton

https://github.com/SalamLang/Salam-Website/actions/runs/18201302955/job/51820660106?pr=373

run markdown link check..................................................Failed
- hook id: markdown-link-check
- exit code: 1

node:internal/url:806
    const href = bindingUrl.parse(input, base, raiseException);
                            ^

TypeError: Invalid URL
    at new URL (node:internal/url:806:29)
    at linkCheck (/home/runner/.cache/pre-commit/repovatlt1_v/node_env-system/lib/node_modules/markdown-link-check/node_modules/link-check/index.js:21:47)
    at /home/runner/.cache/pre-commit/repovatlt1_v/node_env-system/lib/node_modules/markdown-link-check/index.js:202:9
    at /home/runner/.cache/pre-commit/repovatlt1_v/node_env-system/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:247:13
    at replenish (/home/runner/.cache/pre-commit/repovatlt1_v/node_env-system/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:447:21)
    at iterateeCallback (/home/runner/.cache/pre-commit/repovatlt1_v/node_env-system/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:431:21)
    at /home/runner/.cache/pre-commit/repovatlt1_v/node_env-system/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:328:20
    at /home/runner/.cache/pre-commit/repovatlt1_v/node_env-system/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:249:17
    at /home/runner/.cache/pre-commit/repovatlt1_v/node_env-system/lib/node_modules/markdown-link-check/index.js:212:13
    at /home/runner/.cache/pre-commit/repovatlt1_v/node_env-system/lib/node_modules/markdown-link-check/node_modules/link-check/lib/proto/http.js:119:21 {
  code: 'ERR_INVALID_URL',
  input: 'http://localhost:3000%5D',
  base: 'file:///home/runner/work/Salam-Website/Salam-Website'
}

Node.js v20.19.5

Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions