Skip to content

Feature request: Add option to exclude specific square brackets from being validated #4

@rlabrecque

Description

@rlabrecque

This plugin seems incompatible with https://crates.io/crates/mdbook-alerts due to the following warnings:

2025-07-19 14:35:49 [INFO] (mdbook::renderer): Invoking the "linkcheck" renderer
warning: Potential incomplete link
   ┌─ index.md:10:3
   │
10 │ > [!IMPORTANT]
   │   ^^^^^^^^^^^^ Did you forget to define a URL for `!IMPORTANT`?
   │
   = hint: declare the link's URL. For example: `[!IMPORTANT]: http://example.com/`

I know that I can set warning-policy to ignore, but I do want to keep these as warnings generally.

But -- I do wish I could silence these for things like [!IMPORTANT] by adding them to an exclude that operates on the [some page] piece of [some page](./index.html), rather than the href (./index.html) as exclude currently does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions