From f036a25425edd146bfdf9a707aaf0a7f093e6e02 Mon Sep 17 00:00:00 2001 From: thek4n Date: Sun, 29 Mar 2026 12:03:01 +0300 Subject: [PATCH] fix(style): fix removing newlines --- src/markdown.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/markdown.rs b/src/markdown.rs index 396ab21..bf3ab24 100644 --- a/src/markdown.rs +++ b/src/markdown.rs @@ -127,10 +127,13 @@ pub fn markdown_to_html(markdown: &str, ss: &SyntaxSet, ts: &ThemeSet, _file_pat IncludeBackground::No, ) .unwrap_or_else(|_| escape_html(&line)); + result_html.push_str(&html_line); + result_html.push('\n'); } Err(_) => { result_html.push_str(&escape_html(&line)); + result_html.push('\n'); } } }