Module heading_utils

Module heading_utils 

Source

Structs§

Heading
Represents a heading in a Markdown document
HeadingUtils
Utility functions for working with Markdown headings

Enums§

HeadingStyle
Represents different styles of Markdown headings

Functions§

extract_heading_text
Extract the text content from a heading
get_heading_indentation
Get the indentation of a heading
get_heading_level
Get the heading level for a line
is_code_block_delimiter
Check if a line is a code block delimiter
is_front_matter_delimiter
Check if a line is a front matter delimiter
is_heading
Checks if a line is a heading
is_setext_heading
Checks if a line is a setext heading by examining its next line
is_setext_heading_marker
Checks if a line is a setext heading marker
normalize_heading
Normalize a heading to the specified level
remove_trailing_hashes
Remove trailing hashes from a heading