From bbe4fe99f9aef2f15d0cd7025ad07fd3fcdb7c0b Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 23 Mar 2025 13:57:05 +0000 Subject: [PATCH] don't replace line breaks --- packages/editor-ext/src/lib/markdown/utils/marked.utils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/editor-ext/src/lib/markdown/utils/marked.utils.ts b/packages/editor-ext/src/lib/markdown/utils/marked.utils.ts index 29482475..15797711 100644 --- a/packages/editor-ext/src/lib/markdown/utils/marked.utils.ts +++ b/packages/editor-ext/src/lib/markdown/utils/marked.utils.ts @@ -44,6 +44,5 @@ export function markdownToHtml( return marked .options({ breaks: true }) .parse(markdown) - .toString() - .replace(/\n/g, ""); + .toString(); }