mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 08:14:30 -04:00
fix: add breaks option to markdown rendering, to get old linebreak behaviour (#6156)
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user