Skip to content

Commit

Permalink
fix.. (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
infwinston authored Nov 15, 2023
1 parent 2730fe2 commit 0dc4a8c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pages/blog/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ 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 (
<div className="w-full flex justify-center py-5 pt-16 md:pt-5">
<Tags
Expand Down

0 comments on commit 0dc4a8c

Please sign in to comment.