[−][src]Function mktoc::generate_toc
pub fn generate_toc(
original_content: String,
min_depth: i32,
max_depth: i32
) -> String
parses a string and extracts all headlines to build a table of contents
Uses a basic regex "((#{1,6}\s))((.*))" to parse headings out of the