chore(replace md-it): replaced markdown-it with micromark

This commit is contained in:
DecDuck
2024-12-24 10:08:27 +11:00
parent 93dd1a2de5
commit dcf167fee7
4 changed files with 30 additions and 57 deletions
+2 -3
View File
@@ -189,7 +189,7 @@
import { InformationCircleIcon } from "@heroicons/vue/20/solid";
import { Bars3Icon, TrashIcon } from "@heroicons/vue/16/solid";
import type { Game, GameVersion } from "@prisma/client";
import markdownit from "markdown-it";
import {micromark} from 'micromark';
import UploadFileDialog from "~/components/UploadFileDialog.vue";
definePageMeta({
@@ -209,8 +209,7 @@ const { game: rawGame, unimportedVersions } = await $fetch(
);
const game = ref(rawGame);
const md = markdownit();
const descriptionHTML = md.render(game.value?.mDescription ?? "");
const descriptionHTML = micromark(game.value?.mDescription ?? "");
async function updateBannerImage(id: string) {
if (game.value.mBannerId == id) return;