From fbb4475c92c5ea03ec0b54976b13fdd38dd50819 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Sun, 3 Nov 2024 22:40:32 +0100 Subject: [PATCH] make html more correct --- src/convert.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/convert.rs b/src/convert.rs index b901169..86e4ecb 100644 --- a/src/convert.rs +++ b/src/convert.rs @@ -47,7 +47,7 @@ pub fn convert_document(markdown: &str) -> String { let mut attributes = img_info.split(':'); let src = attributes.next().unwrap(); let alt = attributes.next().unwrap_or_else(|| &"\"\""); - html += &format!("{alt}\n"); + html += &format!("{alt}\n"); continue; } @@ -61,7 +61,7 @@ pub fn convert_document(markdown: &str) -> String { } if let Some(youtube_id) = line.strip_prefix("==youtube:") { - html += &format!("https://youtu.be/{youtube_id}\n"); + html += &format!("https://youtu.be/{youtube_id}
\n"); continue; }