Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
imteekay committed Jul 14, 2024
1 parent 55a2d94 commit 48e9f52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 218 deletions.
6 changes: 1 addition & 5 deletions Base/components/MDX/MDX.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { serialize } from 'next-mdx-remote/serialize';
import { InlineMath, BlockMath } from 'react-katex';
import TweetEmbed from 'react-tweet-embed';
import rehypeHighlight from 'rehype-highlight';
import remarkMath from 'remark-math';

import { PostAndDate } from 'Base/components/PostAndDate';
import { SideBySideImages } from 'Base/components/SideBySideImages';
Expand All @@ -21,10 +20,7 @@ interface MDXPropTypes {

export const serializeMDX = (content: string) =>
serialize(content, {
mdxOptions: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeHighlight],
},
mdxOptions: { rehypePlugins: [rehypeHighlight] },
});

const components = {
Expand Down
Loading

0 comments on commit 48e9f52

Please sign in to comment.