From a519af23ce34cdde38736bc24bab3672d6b10feb Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Tue, 26 Nov 2024 11:22:45 +0100 Subject: [PATCH] fix: update deps --- app/pages/portfolio/[slug].vue | 4 ---- nuxt.config.ts | 6 +++++- package.json | 2 ++ pnpm-lock.yaml | 6 ++++++ 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/pages/portfolio/[slug].vue b/app/pages/portfolio/[slug].vue index 26a3c8c..072f1dd 100644 --- a/app/pages/portfolio/[slug].vue +++ b/app/pages/portfolio/[slug].vue @@ -178,10 +178,6 @@ async function handleLike() { .prose h4 a { @apply no-underline; } - -.katex-html { - display: none; -} diff --git a/nuxt.config.ts b/nuxt.config.ts index 904987a..a008a44 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -39,7 +39,11 @@ export default defineNuxtConfig({ }, markdown: { remarkPlugins: ['remark-math'], - rehypePlugins: ['rehype-katex'], + rehypePlugins: { + 'rehype-katex': { + output: 'mathml', + }, + }, }, }, diff --git a/package.json b/package.json index e5cdf30..daa217a 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,8 @@ "nuxt": "^3.13.2", "rehype-katex": "^7.0.1", "remark-math": "^6.0.0", + "remark-parse": "^11.0.0", + "remark-rehype": "^11.1.1", "zod": "^3.23.8" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 694b667..146f797 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,6 +44,12 @@ importers: remark-math: specifier: ^6.0.0 version: 6.0.0 + remark-parse: + specifier: ^11.0.0 + version: 11.0.0 + remark-rehype: + specifier: ^11.1.1 + version: 11.1.1 zod: specifier: ^3.23.8 version: 3.23.8