diff options
Diffstat (limited to 'webui/src/Content.js')
-rw-r--r-- | webui/src/Content.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/webui/src/Content.js b/webui/src/Content.js deleted file mode 100644 index 3a6900bc..00000000 --- a/webui/src/Content.js +++ /dev/null @@ -1,22 +0,0 @@ -import unified from 'unified'; -import parse from 'remark-parse'; -import html from 'remark-html'; -import remark2react from 'remark-react'; -import ImageTag from './tag/ImageTag'; -import PreTag from './tag/PreTag'; - -const Content = ({ markdown }) => { - const processor = unified() - .use(parse) - .use(html) - .use(remark2react, { - remarkReactComponents: { - img: ImageTag, - pre: PreTag, - }, - }); - - return processor.processSync(markdown).contents; -}; - -export default Content; |