Module utils

Source
Expand description

Shared utilities for rumdl, including document structure analysis, code block handling, regex helpers, and string extensions. Provides reusable traits and functions for rule implementations and core linter logic.

Re-exports§

pub use ast_utils::AstCache;
pub use code_block_utils::CodeBlockUtils;
pub use document_structure::DocumentStructure;
pub use markdown_elements::ElementQuality;
pub use markdown_elements::ElementType;
pub use markdown_elements::MarkdownElement;
pub use markdown_elements::MarkdownElements;
pub use range_utils::LineIndex;

Modules§

ast_utils
AST parsing utilities and caching for rumdl
code_block_utils
Utility functions for detecting and handling code blocks and code spans in Markdown for rumdl.
document_structure
early_returns
Fast-path checks and early return utilities for rule implementations in rumdl. Provides helpers to quickly skip rules based on content analysis.
element_cache
emphasis_utils
fix_utils
Utilities for applying fixes consistently between CLI and LSP
markdown_elements
range_utils
Utilities for position/range conversions
regex_cache
Cached Regex Patterns and Fast Content Checks for Markdown Linting
string_interner
table_utils
text_reflow

Traits§

StrExt
Trait for string-related extensions

Functions§

detect_line_ending
Detect the predominant line ending style in content
fast_hash
Fast hash function for string content