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 code_block_utils::CodeBlockUtils;pub use line_ending::LineEnding;pub use line_ending::detect_line_ending;pub use line_ending::detect_line_ending_enum;pub use line_ending::ensure_consistent_line_endings;pub use line_ending::get_line_ending_str;pub use line_ending::normalize_line_ending;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§
- anchor_
styles - Anchor generation styles for different Markdown platforms
- code_
block_ utils - Utility functions for detecting and handling code blocks and code spans in Markdown for rumdl.
- 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
- header_
id_ utils - Utilities for extracting custom header IDs from various Markdown flavors
- jinja_
utils - kramdown_
utils - Utilities for handling Kramdown-specific syntax
- line_
ending - markdown_
elements - mkdocs_
abbreviations - mkdocs_
admonitions - mkdocs_
attr_ list - mkdocs_
common - mkdocs_
critic - mkdocs_
definition_ lists - MkDocs/Python-Markdown Definition Lists extension support
- mkdocs_
extensions - mkdocs_
footnotes - mkdocs_
icons - mkdocs_
patterns - mkdocs_
snippets - mkdocs_
tabs - mkdocs_
test_ utils - mkdocstrings_
refs - quarto_
divs - Quarto div and callout block detection utilities
- range_
utils - Utilities for position/range conversions
- regex_
cache - Cached Regex Patterns and Fast Content Checks for Markdown Linting
- sentence_
utils - Sentence detection utilities
- skip_
context - Utilities for determining if a position in markdown should be skipped from processing
- string_
interner - table_
utils - text_
reflow - Text reflow utilities for MD013
- utf8_
offsets - UTF-8 byte offset to character offset conversion utilities.
Traits§
- StrExt
- Trait for string-related extensions
Functions§
- fast_
hash - Fast hash function for string content
- is_
definition_ list_ item - Check if a line is a definition list item (Extended Markdown)