diff --git a/crates/rustwell/src/export/html.rs b/crates/rustwell/src/export/html.rs
index 851a3b5..6b9e38b 100644
--- a/crates/rustwell/src/export/html.rs
+++ b/crates/rustwell/src/export/html.rs
@@ -214,15 +214,11 @@ impl HtmlExporter {
.map(|e| self.format_rich_element(e))
.collect::>()
.concat()
+ .replace("\n", "
")
}
/// Formats a [`RichString`] [`rich_string::Element`] into a `html`-[String].
fn format_rich_element(&self, element: &rich_string::Element) -> String {
- // Assumes newlines '\n' will only occur sole elements
- if element.text == "\n" {
- return "
".to_string();
- }
-
let prepend = format!(
"{}{}{}",
if element.is_bold() { "" } else { "" },