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 1
1
import React from "react" ;
2
2
import { cn } from "@/lib/utils" ;
3
3
import { MarkdownComponents } from "./markdown-components" ;
4
- import { MDXProvider } from "@mdx-js/react" ;
5
4
import type { Components } from "react-markdown" ;
6
5
7
6
// Video component specifically for MDX
@@ -34,12 +33,3 @@ export const MDXComponents: CustomMDXComponents = {
34
33
Video : VideoPlayer ,
35
34
video : VideoPlayer ,
36
35
} 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 1
1
import React from "react" ;
2
2
import { MDXComponents } from "@/components/ui/mdx-components" ;
3
- import { MDXProvider } from "@mdx-js/react" ;
4
3
import ReactMarkdown from "react-markdown" ;
5
4
6
5
/**
@@ -40,7 +39,6 @@ export const MDXRenderer: React.FC<{
40
39
if ( ! content ) return null ;
41
40
42
41
return (
43
- < MDXProvider components = { MDXComponents } >
44
42
< div className = "mdx-content" >
45
43
{ /* Render the markdown content with proper formatting */ }
46
44
< ReactMarkdown components = { MDXComponents } > { content } </ ReactMarkdown >
@@ -50,7 +48,6 @@ export const MDXRenderer: React.FC<{
50
48
< div className = "mt-4" dangerouslySetInnerHTML = { { __html : processedVideos } } />
51
49
) }
52
50
</ div >
53
- </ MDXProvider >
54
51
) ;
55
52
} ;
56
53
You can’t perform that action at this time.
0 commit comments