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(); }