From a530d1f060a4baeace3a31bc6d49f3c78274e320 Mon Sep 17 00:00:00 2001 From: Wei-Lin Chiang Date: Wed, 15 Nov 2023 10:08:27 -0800 Subject: [PATCH] fix (#46) --- src/pages/_document.js | 5 ++--- src/pages/blog/[slug].js | 8 -------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/pages/_document.js b/src/pages/_document.js index f4e60609..1e07782e 100644 --- a/src/pages/_document.js +++ b/src/pages/_document.js @@ -3,9 +3,8 @@ export default function Document() { return ( - - - + +
diff --git a/src/pages/blog/[slug].js b/src/pages/blog/[slug].js index a66f966b..8926a8ca 100644 --- a/src/pages/blog/[slug].js +++ b/src/pages/blog/[slug].js @@ -4,16 +4,8 @@ import md from "markdown-it"; import mdgh from "markdown-it-github-headings"; import Tags from "../../components/Tags"; import dateFormat from "dateformat"; -import React, { useEffect } from 'react'; export default function Post({ frontmatter, content, slug }) { - useEffect(() => { - // Check if MathJax object is available - if (window.MathJax) { - // Typeset / reprocess the math content - window.MathJax.typesetPromise(); - } - }, [content]); return (