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

This commit is contained in:
Sören
2025-09-13 19:29:23 +02:00
committed by GitHub
parent 72388e8bcf
commit af264bd288

View File

@@ -39,7 +39,7 @@ export default defineNuxtComponent({
} }
const value = computed(() => { const value = computed(() => {
const rawHtml = marked.parse(props.source || "", { async: false }); const rawHtml = marked.parse(props.source || "", { async: false, breaks: true });
return sanitizeMarkdown(rawHtml); return sanitizeMarkdown(rawHtml);
}); });