tcort / markdown-link-check

checks all of the hyperlinks in a markdown text to determine if they are alive or dead
ISC License
582 stars 118 forks source link

Version 3.13.5 seems to break when using config file #369

Open isuftin opened 9 hours ago

isuftin commented 9 hours ago

With version 3.13.5, I am unable to get the utility to properly check links.

markdown-link-check-config.json:

{
  "ignorePatterns": [
    {
      "pattern": "^https://my-repo.com/docker/markdown-link-check/compare/(.*)"
    },
    {
      "pattern": "^https://my-repo.com/docker/markdown-link-check/commit/(.*)"
    }
  ]
}

README2.md:

# Markdown Link Check

[[_TOC_]]

## Purpose

I'm a simple [document][mlc_usage]

[mlc_usage]: https://github.com/tcort/markdown-link-check#usage

Example run:

/data $ markdown-link-check --config markdown-link-check-config.json  --verbose  README2.md

FILE: README2.md
/data $ echo $?
1
/data $ markdown-link-check  --verbose  README2.md

FILE: README2.md
  [✓] https://github.com/tcort/markdown-link-check#usage → Status: 200

  1 links checked.
/data $ echo $?
0
/data $

This seems to be a regression from 3.12.x

isuftin commented 9 hours ago

Note that this is running in an Alpine Docker container.

/data $ markdown-link-check --version
3.13.5
/data $ cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.19.4
PRETTY_NAME="Alpine Linux v3.19"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
/data $ npm --version
10.9.0
/data $ node --version
v20.18.0