A remark-lint rule that warns when image or link syntax has brackets and parentheses accidentally swapped (e.g., `(text)[url]` instead of `[text](url)`). Current stable version is 1.0.1, ESM-only, requires Node.js 16+. It is a focused, zero-config lint rule with no parameters, part of the unified/remark ecosystem. Unlike broader lint presets, this rule targets a single common mistake with a clear, actionable message.
npm install remark-lint-correct-media-syntaxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the plugin with unified to lint markdown for swapped bracket/paren syntax.
Use import syntax instead of require(). Switch to ESM or use dynamic import() if needed.
No workaround; if you need to customize behavior, consider other lint rules or use remark-message-control.
Use additional remark-lint plugins (e.g., remark-lint-no-literal-urls) for broader coverage.
Upgrade Node.js to version 16 or later.
Change to import statement or use dynamic import().
Swap the brackets and parentheses to `[text](url)`.
Run `npm install remark-lint-correct-media-syntax` and verify the import path.