data.markdown.tools #
fn extract_title #
fn extract_title(page string) string
extract_title extracts the highest level markdown title from a page string. It returns the first one found, or an empty string if none are present.
fn min_header #
fn min_header(text string, minlevel int) string
fn set_titles #
fn set_titles(page string, maxnr int) string
set_titles renumbers markdown titles in a page string up to a specified maximum level. If maxnr is not set, it defaults to 3.