brok icon indicating copy to clipboard operation
brok copied to clipboard

Supports URL replacements like in markdown-link-check

Open boillodmanuel opened this issue 5 years ago • 2 comments

From the markdown-link-check readme:

This behavior allows (for example) to adapt to certain platform conventions hosting the Markdown

In my example, it's for the gitlab wiki

boillodmanuel avatar May 27 '20 16:05 boillodmanuel

Yes, I can see that would be useful. Haven't used any of the Haskell RegEx packages yet, so will need to look into that side of things.

smallhadroncollider avatar Jun 02 '20 15:06 smallhadroncollider

Here is an example:

  • With a relative URL without extension (./info), gitlab serves the (./info.md) page.
  • With a relative URL with extension (./info.md), gitlab serves the (./info.md) raw file.

Link to the gitlab doc that describes this behaviour: https://docs.gitlab.com/ee/user/markdown.html#wiki-specific-markdown

I also used the ignorePatterns capability of markdown-link-check.

boillodmanuel avatar Jun 02 '20 16:06 boillodmanuel