{children}
+{children}
), + + // Media + img: ({ src, alt }: { src: string; alt: string }): ReactElement => ( + + ), + + // Lists ul: ({ children }: { children: ReactNode }): ReactElement => ( -- {children}
- {children}
{children}; + } + return ( +
++ ); + }, }; /** @@ -71,6 +145,8 @@ export const CustomMDX = (props: any): ReactElement => ( components={{ ...components, ...(props.components || {}), + Link, + Activity, }} options={{ mdxOptions: { @@ -83,6 +159,7 @@ export const CustomMDX = (props: any): ReactElement => ( /** * A heading component. * + * @param as the type of heading * @param className the class name of the heading * @param size the size of the heading * @param children the children within the heading @@ -104,7 +181,11 @@ const Heading = ({ return (+ {style.icon} + {capitalizeWords(match[1])} +
+{match[2]}
+