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:
+9
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user