Expand description
This module handles parsing and mapping markdownlint config files (JSON/YAML) to rumdl’s internal config format. It provides mapping from markdownlint rule keys to rumdl rule keys and provenance tracking for configuration values.
Structs§
- Markdownlint
Config - Represents a generic markdownlint config (rule keys to values)
Functions§
- load_
markdownlint_ config - Load a markdownlint config file (JSON or YAML) from the given path.
Supports both flat markdownlint format and markdownlint-cli2 format
where rules are nested under a top-level
config:key. - markdownlint_
to_ rumdl_ rule_ key - Mapping table from markdownlint rule keys/aliases to rumdl rule keys Convert a rule name (which may be an alias like “line-length”) to the canonical rule ID (like “MD013”). Returns None if the rule name is not recognized.