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.
- extract_
front_ matter_ data - Extracts and parses front matter from content, supporting YAML (
---), TOML (+++), and JSON ({…}) delimiters. - 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.