feat: enhance markdown rendering

Adds remark-breaks for newline-to-br conversion and a custom
remarkSplitBlocks plugin to split paragraphs at hard breaks. Code blocks
over 15KB are truncated with a 'Show all' toggle for better
performance.
This commit is contained in:
Zoe
2026-04-27 12:06:30 -05:00
parent 61c73f394d
commit 9bd4b36094
3 changed files with 77 additions and 3 deletions
+9 -1
View File
@@ -117,10 +117,12 @@ export default defineNuxtConfig({
'remark-parse',
'remark-rehype',
'remark-math',
'remark-breaks',
'rehype-katex',
'unist-util-visit',
'comlink',
'nanoid'
'nanoid',
'drizzle-orm/pg-core'
],
},
build: {
@@ -135,6 +137,12 @@ export default defineNuxtConfig({
// viewTransition: true,
// },
// nitro: {
// experimental: {
// wasm: true
// }
// },
modules: [
'@nuxt/hints',
'@unocss/nuxt',