Add https scheme to mention URI in contents

This commit is contained in:
Kitaiti Makoto 2022-01-09 13:11:09 +09:00
parent e8153d4b42
commit 05f55fc1ca

View file

@ -271,7 +271,7 @@ pub fn md_to_html<'a>(
media_processor: Option<MediaProcessor<'a>>,
) -> (String, HashSet<String>, HashSet<String>) {
let base_url = if let Some(base_url) = base_url {
format!("//{}/", base_url)
format!("https://{}/", base_url)
} else {
"/".to_owned()
};