From 022f510369688084af5bcf314a97fd332d7ee265 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 4 Feb 2020 22:03:21 +0100 Subject: webui: convert more things to typescript --- webui/src/Content.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 webui/src/Content.js (limited to 'webui/src/Content.js') 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; -- cgit