You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a markdown file that defines a "link" like this: (link)[https://github.com] . Instead of showing "invalid link syntax" for a given file, or anything, I get a silent exit code 1.
Note that if a file has no links to be checked and I pass the verbose mode, I get:
FILE: markdown.md
No hyperlinks found!
0 links checked.
But when in this case I just got:
FILE: markdown.md
Without any further explanations if any links were checked.
Took me a while to discover what went wrong.
Not related to #369 , but haven't checked against #398 .
The text was updated successfully, but these errors were encountered:
FILE: docs/test.md
TypeError: Invalid URL
at new URL (node:internal/url:816:29)
at linkCheck (xxx/wiki/node_modules/link-check/index.js:21:47)
at xxx/wiki/node_modules/markdown-link-check/index.js:158:9
at /xxx/wiki/node_modules/async/dist/async.js:247:13
at replenish (xxx/wiki/node_modules/async/dist/async.js:447:21)
at xxx/wiki/node_modules/async/dist/async.js:452:13
at _asyncMap (xxx/wiki/node_modules/async/dist/async.js:245:16)
at Object.mapLimit (xxx/wiki/node_modules/async/dist/async.js:2092:16)
at Object.awaitable [as mapLimit] (xxx/wiki/node_modules/async/dist/async.js:212:32)
at markdownLinkCheck (xxx/wiki/node_modules/markdown-link-check/index.js:98:11) {
code: 'ERR_INVALID_URL',
input: 'https://github.com%5D',
base: 'file:///xxx/wiki/docs'
}
`
If you have a look to the logs here above, it has discovered your "wrong" url but as it's not in the right format it kept the ] at the end (%5D). I don't know how it works in details and why it's not displayed to the console
Pretty much the title.
Create a markdown file that defines a "link" like this:
(link)[https://github.com]
. Instead of showing "invalid link syntax" for a given file, or anything, I get a silent exit code 1.Note that if a file has no links to be checked and I pass the verbose mode, I get:
But when in this case I just got:
Without any further explanations if any links were checked.
Took me a while to discover what went wrong.
Not related to #369 , but haven't checked against #398 .
The text was updated successfully, but these errors were encountered: