Function get_file_base64s

Source
pub async fn get_file_base64s(
    markdown: &str,
    regex: Regex,
    guess_mime_type: fn(url: &str) -> String,
) -> Vec<MatchedFiles>
Expand description

§Panics

regex must have a Regex with atleast 1 capture group with file URL as first capture group, else it PANICS

§Arguments

guess_mime_type is used to detect mimi_type of URL pointing to file system or web resource with no “Content-Type” header.