From 50ef67664dd13ff8abc909be3c0ec0f46a616a15 Mon Sep 17 00:00:00 2001 From: Sascha Date: Wed, 31 Mar 2021 21:17:08 +0200 Subject: Add emoji rendering support via remark-gemoji --- webui/src/components/Content/index.tsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webui/src/components/Content') diff --git a/webui/src/components/Content/index.tsx b/webui/src/components/Content/index.tsx index 75360bb6..809ae818 100644 --- a/webui/src/components/Content/index.tsx +++ b/webui/src/components/Content/index.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import gemoji from 'remark-gemoji'; import html from 'remark-html'; import parse from 'remark-parse'; import remark2react from 'remark-react'; @@ -12,6 +13,7 @@ type Props = { markdown: string }; const Content: React.FC = ({ markdown }: Props) => { const content = unified() .use(parse) + .use(gemoji) .use(html) .use(remark2react, { remarkReactComponents: { -- cgit