Skip to content

Commit

Permalink
chore: just some text
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Oct 31, 2023
1 parent 1cd6387 commit daae9ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/mdxProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export const MDXProvider: FC<{ content: string }> = ({ content }) => {
useEffect(() => window.startLegacyApp(), []);

// Parses the MDX Function and eval's it into a React Component
// We don't need asynchronous runtime here as we want to render the MDX
// as soon as it is available and be able to make initial renders
const MDXContent = useMemo(() => runMDX(content), [content]);

return <MDXContent components={combinedComponents} />;
Expand Down

0 comments on commit daae9ea

Please sign in to comment.