import dedent from 'dedent';
import MarkdownIt from 'markdown-it';
import * as MarkdownItAttrs from 'markdown-it-attrs';
import ReactDOMServer from 'react-dom/server';
import { CodeBlock } from './codeblock';
import styles from './markdown.module.scss';
interface Props {
body: string;
}
const md = MarkdownIt({
highlight: (str, lang): string => {
return ReactDOMServer.renderToStaticMarkup(