Skip to main content

try_parse_inline_image

Function try_parse_inline_image 

Source
pub fn try_parse_inline_image(
    text: &str,
) -> Option<(usize, &str, &str, Option<&str>)>
Expand description

Try to parse an inline image starting at the current position.

Inline images have the form ![alt](url) or ![alt](url "title"). Can also have trailing attributes: ![alt](url){#id .class}. Returns Some((length, alt_text, dest_content, raw_attributes)) if a valid image is found.