Skip to main content

Module markdownlint_config

Module markdownlint_config 

Source
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§

MarkdownlintConfig
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.