Skip to main content

is_in_inline_html_code

Function is_in_inline_html_code 

Source
pub fn is_in_inline_html_code(line: &str, position: usize) -> bool
Expand description

Check whether a position on a line falls inside an inline HTML code-like element.

Handles <code>, <pre>, <samp>, <kbd>, and <var> tags (case-insensitive). These are inline elements whose content should not be interpreted as markdown emphasis.