feat(markdown): add gfm support

revert firebase changes
This commit is contained in:
Pierre Huyghe
2021-08-10 12:44:27 +02:00
committed by hpierre74
parent 99d7d3aad2
commit cfad352903
14 changed files with 84 additions and 32 deletions
+16
View File
@@ -0,0 +1,16 @@
import React, { memo } from 'react';
import ReactMarkdown from 'react-markdown';
import gfm from 'remark-gfm';
import cx from 'classnames';
const Markdown = ({ children, className, ...props }) => (
<ReactMarkdown
className={cx('markdown', className)}
remarkPlugins={[gfm]}
{...props}
>
{children}
</ReactMarkdown>
);
export default memo(Markdown);