markdownlint/helpers
2024-10-11 22:18:51 -07:00
..
.npmignore Enable custom rules to use the micromark parser, export micromark helpers for reuse. 2024-10-01 22:53:46 -07:00
helpers.js Move single use, not explicitly tested helpers into the file that uses them. 2024-10-06 20:59:28 -07:00
LICENSE Remove years from copyright statements. 2023-01-14 15:11:48 -08:00
micromark-helpers.cjs Refactor various code to do shallow/constrained search instead of deep search for better performance, make cache key for filterByTypesCached unique. 2024-10-09 22:42:36 -07:00
micromark-parse.cjs Refactor to freeze parser tokens only when custom rules are present (negligable performance improvement). 2024-10-11 22:18:51 -07:00
package.json Enable custom rules to use the micromark parser, export micromark helpers for reuse. 2024-10-01 22:53:46 -07:00
README.md Promote applyFix and applyFixes helpers into core library. 2024-10-06 17:24:44 -07:00
shared.js Split micromark.cjs into separate -parse and -helpers files. 2024-09-28 16:26:38 -07:00
test.cjs Enable custom rules to use the micromark parser, export micromark helpers for reuse. 2024-10-01 22:53:46 -07:00

markdownlint-rule-helpers

A collection of markdownlint helper functions for custom rules

Overview

The Markdown linter markdownlint offers a variety of built-in validation rules and supports the creation of 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 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.