Skip to main content

image_reference

Function image_reference 

Source
pub fn image_reference(line: &str) -> Option<(&str, &str)>
Expand description

![alt](url), when that is the whole line.

Only the whole-line form is substituted. An image reference in the middle of a sentence is part of that sentence, and replacing it with a picture would cut the sentence in half.