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

@@ -18,10 +18,10 @@ export default definePageComponent({
<script setup lang="ts">
import type { Note } from "~/api/note.type"
import { marked } from "marked"
import { renderToHtml } from "md4x"
const props = defineProps<{ note: Note }>()
const textContent = marked.parse(props.note.textContent)
const textContent = renderToHtml(props.note.textContent)
useHead({
title: props.note.title,