deps: change to md4x for better performance

This commit is contained in:
Julien Calixte
2026-03-14 13:37:02 +01:00
parent 577e10a9d3
commit fef0ac8abf
2 changed files with 3 additions and 3 deletions

View File

@@ -33,4 +33,4 @@
"pinia": "^3.0.4" "pinia": "^3.0.4"
}, },
"packageManager": "pnpm@10.32.1" "packageManager": "pnpm@10.32.1"
} }

View File

@@ -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,