[GH-ISSUE #1418] Disable link checking for GitHub Alerts #2528

Closed
opened 2026-03-07 20:08:36 +03:00 by kerem · 2 comments
Owner

Originally created by @gabeseltzer on GitHub (Nov 15, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1418

GitHub uses the following syntax for "Alerts":

> [!NOTE]
> Useful information that users should know, even when skimming content.

markdownlint will flag the [!NOTE] as a link, and will tell you No link definition found: '!NOTE'(link.no-such-reference). Can we turn this off for the keywords that make up alerts? Specifically:

  • [!NOTE]
  • [!TIP]
  • [!IMPORTANT]
  • [!WARNING]
  • [!CAUTION]
Originally created by @gabeseltzer on GitHub (Nov 15, 2024). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1418 GitHub uses the following syntax for ["Alerts"](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts): ```markdown > [!NOTE] > Useful information that users should know, even when skimming content. ``` markdownlint will flag the `[!NOTE]` as a link, and will tell you `No link definition found: '!NOTE'(link.no-such-reference)`. Can we turn this off for the keywords that make up alerts? Specifically: * `[!NOTE]` * `[!TIP]` * `[!IMPORTANT]` * `[!WARNING]` * `[!CAUTION]`
kerem 2026-03-07 20:08:36 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Nov 16, 2024):

The error error message you show above is not coming from this tool. You can see that your example produces no violations: https://dlaa.me/markdownlint/#%25m%23%20Issue%201418%0A%0A%3E%20%5B!NOTE%5D%0A%3E%20Useful%20information%0A

It looks like the message you show is coming from VS Code instead: https://stackoverflow.com/questions/75252767/have-vscode-ignore-specific-reference-links-in-markdown-validation

<!-- gh-comment-id:2480411381 --> @DavidAnson commented on GitHub (Nov 16, 2024): The error error message you show above is not coming from this tool. You can see that your example produces no violations: https://dlaa.me/markdownlint/#%25m%23%20Issue%201418%0A%0A%3E%20%5B!NOTE%5D%0A%3E%20Useful%20information%0A It looks like the message you show is coming from VS Code instead: https://stackoverflow.com/questions/75252767/have-vscode-ignore-specific-reference-links-in-markdown-validation
Author
Owner

@gabeseltzer commented on GitHub (Nov 19, 2024):

Ah, thanks and sorry for the trouble! For those wondering, it looks like there's a follow-on ticket for VSCode here: https://github.com/microsoft/vscode-markdown-languageservice/issues/152

<!-- gh-comment-id:2486357731 --> @gabeseltzer commented on GitHub (Nov 19, 2024): Ah, thanks and sorry for the trouble! For those wondering, it looks like there's a follow-on ticket for VSCode here: https://github.com/microsoft/vscode-markdown-languageservice/issues/152
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2528
No description provided.