# markdownlint-rule-helpers

> A collection of markdownlint helper functions for custom rules

Latest version **0.31.0** (published 2026-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install markdownlint-rule-helpers
pnpm add markdownlint-rule-helpers
yarn add markdownlint-rule-helpers
bun add markdownlint-rule-helpers
```

## Health

**Score 58/100 (C)** — status: active.

Positive: has types package; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.31.0 |
| Published | 2026-06-10 |
| First published | 2019-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/markdownlint-rule-helpers) |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 0 |
| Unpacked size | 36 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6352 |
| Author | David Anson |
| Maintainers | davidanson |
| Keywords | markdownlint, markdownlint-rule |

## Links

- npm: https://www.npmjs.com/package/markdownlint-rule-helpers
- Repository: https://github.com/DavidAnson/markdownlint
- Issues: https://github.com/DavidAnson/markdownlint/issues
- Funding: https://github.com/sponsors/DavidAnson
- npm.io page: https://npm.io/package/markdownlint-rule-helpers

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.31.0 (latest) — 2026-06-10
- 0.30.0 — 2025-10-13
- 0.29.0 — 2025-05-03
- 0.28.0 — 2024-12-08
- 0.27.0 — 2024-10-26
- 0.26.0 — 2024-08-29
- 0.25.0 — 2024-03-21
- 0.24.0 — 2024-01-08
- 0.23.0 — 2023-11-14
- 0.22.0 — 2023-09-08
- 0.21.0 — 2023-08-10
- 0.20.0 — 2023-06-02
- 0.19.0 — 2023-03-24
- 0.18.0 — 2022-12-28
- 0.17.2 — 2022-08-09
- … 19 more at https://npm.io/package/markdownlint-rule-helpers/versions

## README

# markdownlint-rule-helpers

> A collection of `markdownlint` helper functions for custom rules

## Overview

The [Markdown][markdown] linter [`markdownlint`][markdownlint] offers a variety
of built-in validation [rules][rules] and supports the creation of [custom
rules][custom-rules]. The internal rules share various helper functions; this
package exposes those for reuse by custom rules.

## API

*Undocumented* - This package exports the internal functions as-is. The APIs
were not originally meant to be public, are not officially supported, and may
change from release to release. There are brief descriptive comments above each
function, but no [JSDoc][jsdoc] annotations. That said, some of what's here will
be useful to custom rule authors and may avoid duplicating code.

## Tests

*None* - The entire body of code is tested to 100% coverage by the core
`markdownlint` project, so there are no additional tests here.

[custom-rules]: https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/CustomRules.md
[jsdoc]: https://wikipedia.org/wiki/JSDoc
[markdown]: https://wikipedia.org/wiki/Markdown
[markdownlint]: https://github.com/DavidAnson/markdownlint
[rules]: https://github.com/DavidAnson/markdownlint/blob/v0.41.0/doc/Rules.md

---
_Source: https://npm.io/package/markdownlint-rule-helpers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
