[][src]Function markdown_splitter::is_tag

pub fn is_tag(line: &str, openning: bool) -> bool

Returns boolean if the line starts by the openning tag

Examples

Opening tag

let result = markdown_splitter::is_tag("<!-- export ok -->", true);
assert_eq!(result, true);

Closing tag

let result = markdown_splitter::is_tag("<!-- /export -->", false);
assert_eq!(result, true);
let result = markdown_splitter::is_tag("not a tag", true);
assert_eq!(result, false);