Module utils

Source
Expand description

Utility functions for HTML and Markdown processing.

This module provides various utility functions for tasks such as extracting front matter from Markdown content and formatting HTML headers.

Functionsยง

extract_front_matter
Extracts front matter from Markdown content.
format_header_with_id_class
Formats a header with an ID and class.
generate_table_of_contents
Generates a table of contents from HTML content.
is_valid_aria_role
Check if an ARIA role is valid for a given element.
is_valid_language_code
Validates a language code.