UNPKG

@alauda/doom

Version:

Doctor Doom making docs.

11 lines (10 loc) 526 B
import { jsx as _jsx } from "react/jsx-runtime"; import {} from 'react'; import ReactMarkdown from 'react-markdown'; import rehypeRaw from 'rehype-raw'; import rehypeSanitize from 'rehype-sanitize'; import remarkGfm from 'remark-gfm'; import { X } from './_X.js'; const remarkPlugins = [remarkGfm]; const rehypePlugins = [rehypeRaw, rehypeSanitize]; export const Markdown = ({ children }) => children && (_jsx(ReactMarkdown, { remarkPlugins: remarkPlugins, rehypePlugins: rehypePlugins, components: X, children: children }));