deps: change to md4x for better performance
This commit is contained in:
@@ -33,4 +33,4 @@
|
|||||||
"pinia": "^3.0.4"
|
"pinia": "^3.0.4"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.32.1"
|
"packageManager": "pnpm@10.32.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ export default definePageComponent({
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { Note } from "~/api/note.type"
|
import type { Note } from "~/api/note.type"
|
||||||
import { marked } from "marked"
|
import { renderToHtml } from "md4x"
|
||||||
|
|
||||||
const props = defineProps<{ note: Note }>()
|
const props = defineProps<{ note: Note }>()
|
||||||
const textContent = marked.parse(props.note.textContent)
|
const textContent = renderToHtml(props.note.textContent)
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
title: props.note.title,
|
title: props.note.title,
|
||||||
|
|||||||
Reference in New Issue
Block a user