diff --git a/components/mdx/PreWrapper.tsx b/components/mdx/PreWrapper.tsx index eeeac38..e6d5a62 100644 --- a/components/mdx/PreWrapper.tsx +++ b/components/mdx/PreWrapper.tsx @@ -32,14 +32,19 @@ const PreWrapper = ({ children }: { children: JSX.Element }) => { {hovered && ( )} -
+      
         {children}
       
diff --git a/components/mdx/Span.tsx b/components/mdx/Span.tsx new file mode 100644 index 0000000..eee4d1b --- /dev/null +++ b/components/mdx/Span.tsx @@ -0,0 +1,5 @@ +const Span = (props: JSX.IntrinsicElements["h2"]) => { + return ; +}; + +export default Span; diff --git a/components/mdx/index.ts b/components/mdx/index.ts index 789855b..20891d9 100644 --- a/components/mdx/index.ts +++ b/components/mdx/index.ts @@ -2,6 +2,7 @@ import Blockquote from "./Blockquote"; import H2 from "./H2"; import ImageWrapper from "./ImageWrapper"; import PreWrapper from "./PreWrapper"; +import Span from "./Span"; import TableWrapper from "./TableWrapper"; export const MDXComponentsSet = { @@ -10,4 +11,5 @@ export const MDXComponentsSet = { img: ImageWrapper, h2: H2, blockquote: Blockquote, + span: Span, };