File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed
typescript-sdk/apps/dojo/src Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22import { cn } from "@/lib/utils" ;
33import { MarkdownComponents } from "./markdown-components" ;
4- import { MDXProvider } from "@mdx-js/react" ;
54import type { Components } from "react-markdown" ;
65
76// Video component specifically for MDX
@@ -34,12 +33,3 @@ export const MDXComponents: CustomMDXComponents = {
3433 Video : VideoPlayer ,
3534 video : VideoPlayer ,
3635} as CustomMDXComponents ;
37-
38- // MDX Provider wrapper component
39- export const MDXContent : React . FC < { children : React . ReactNode } > = ( { children } ) => {
40- return (
41- < MDXProvider components = { MDXComponents } >
42- < div className = "mdx-content" > { children } </ div >
43- </ MDXProvider >
44- ) ;
45- } ;
Original file line number Diff line number Diff line change 11import React from "react" ;
22import { MDXComponents } from "@/components/ui/mdx-components" ;
3- import { MDXProvider } from "@mdx-js/react" ;
43import ReactMarkdown from "react-markdown" ;
54
65/**
@@ -40,7 +39,6 @@ export const MDXRenderer: React.FC<{
4039 if ( ! content ) return null ;
4140
4241 return (
43- < MDXProvider components = { MDXComponents } >
4442 < div className = "mdx-content" >
4543 { /* Render the markdown content with proper formatting */ }
4644 < ReactMarkdown components = { MDXComponents } > { content } </ ReactMarkdown >
@@ -50,7 +48,6 @@ export const MDXRenderer: React.FC<{
5048 < div className = "mt-4" dangerouslySetInnerHTML = { { __html : processedVideos } } />
5149 ) }
5250 </ div >
53- </ MDXProvider >
5451 ) ;
5552} ;
5653
You can’t perform that action at this time.
0 commit comments