Plugin or script that checks all links in *.md files


Is there a way (plugin or script) to check that all *.md files’ links are valid? does not work with private repos (with auth/2FA turned on) and also it not seem to work with several flavours of Gitlab MD style links listed here:

I think one sould need ot write a GitLab specific script/tool.

Any guidance would be much appreciated.