Skip to main content

extract_html_comments

Function extract_html_comments 

Source
pub fn extract_html_comments(content: &str) -> Vec<Html>
Expand description

Extract HTML comments (<!-- ... -->) from raw text content, returning Html nodes with correct byte positions. This is used for source files where the markdown AST parser won’t find HTML comments inside code comments.