fix(style): fix removing newlines

This commit is contained in:
thek4n 2026-03-29 12:03:01 +03:00
parent a6c8739044
commit f036a25425

View File

@ -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');
}
}
}