diff --git a/src/convert.rs b/src/convert.rs index 7b99491..37eb5db 100644 --- a/src/convert.rs +++ b/src/convert.rs @@ -45,7 +45,7 @@ pub fn convert_document(markdown: &str) -> String { if let Some(img_info) = line.strip_prefix("==image:") { let (src, alt) = img_info.split_once(':').unwrap(); - html += &format!("{alt}\n"); + html += &format!("{alt}\n"); continue; } @@ -54,12 +54,12 @@ pub fn convert_document(markdown: &str) -> String { let src = attributes.next().unwrap(); let alt = attributes.next().unwrap_or_else(|| &"\"\""); let extra = attributes.next().unwrap_or_default(); - html += &format!("\n"); + html += &format!("\n"); continue; } if let Some(youtube_id) = line.strip_prefix("==youtube:") { - html += &format!("https://youtu.be/{youtube_id}"); + html += &format!("https://youtu.be/{youtube_id}\n"); continue; }