fix: make markdown *actually* render single newlines as double newlines

This commit is contained in:
Zoe
2026-02-26 10:25:50 -06:00
parent e6bb005f11
commit fd6288a927
2 changed files with 51 additions and 3 deletions
-2
View File
@@ -1,6 +1,5 @@
import { unified } from 'unified';
import remarkParse from 'remark-parse';
import remarkBreaks from 'remark-breaks';
import remarkGfm from 'remark-gfm';
import remarkRehype from 'remark-rehype';
import remarkMath from 'remark-math';
@@ -10,7 +9,6 @@ export default defineNuxtPlugin((nuxtApp) => {
const remark =
unified()
.use(remarkParse)
.use(remarkBreaks)
.use(remarkGfm)
.use(remarkMath)
.use(remarkRehype, { allowDangerousHtml: true })