Module html_generator

Source
Expand description

This module provides functionality to generate HTML from markdown block elements.

Functionsยง

format_title ๐Ÿ”’
Formats the file name to create a title for the HTML document
generate_default_css
Generates a default CSS stylesheet as a string.
generate_head ๐Ÿ”’
Generates the HTML head section
generate_html
Generates an HTML string from a vector of MdBlockElements
generate_index
Generates the index HTML file that lists all pages
generate_navbar ๐Ÿ”’
Generates the HTML for the navigation bar
indent_html
Indents each line of the given HTML string by the specified number of tabs.