fix: add breaks option to markdown rendering, to get old linebreak behaviour (#6156)

This commit is contained in:
Sören authored and GitHub committed 2025-09-13 17:29:23 +00:00
1 parent 72388e8bcf
commit af264bd288
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ export default defineNuxtComponent({
}
const value = computed(() => {
const rawHtml = marked.parse(props.source || "", { async: false });
const rawHtml = marked.parse(props.source || "", { async: false, breaks: true });
return sanitizeMarkdown(rawHtml);
});