A remark-lint plugin to prohibit specified strings in markdown files (excluding code blocks). Version 4.0.0 is current and stable, with infrequent releases. It supports case-sensitive and case-insensitive matching, regular expressions, capture group replacement, and optional exclusion of matches adjacent to specified characters. Compared to alternatives, it is lightweight and simple, focused solely on string prohibition without additional linting rules.
npm install remark-lint-prohibited-stringsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows setup of remark-lint with prohibited-strings plugin and linting a simple markdown file.
Use additional linting rules or preprocess the file if code block linting is required.
Ensure regex strings are escaped for JavaScript string literal, e.g., '[Rr][Ff][Cc](\\d+)'.
Explicitly include `no` with the exact case you want to match if case-insensitive behavior is not desired.
Run `npm install remark-lint-prohibited-strings` and use the correct import as shown in the quickstart.
Ensure the second argument to .use() is an array of rule objects, e.g., [ { no: 'foo', yes: 'bar' } ].