aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components/Content
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-03-31 21:17:08 +0200
committerSascha <GlancingMind@outlook.com>2021-04-07 19:30:07 +0200
commit50ef67664dd13ff8abc909be3c0ec0f46a616a15 (patch)
treeb0908a524b87ff653d4e119f742a0ddea5c6c803 /webui/src/components/Content
parent637bce7ba73c6a0a3d898b9b5e7ad13dc992ee35 (diff)
downloadgit-bug-50ef67664dd13ff8abc909be3c0ec0f46a616a15.tar.gz
Add emoji rendering support via remark-gemoji
Diffstat (limited to 'webui/src/components/Content')
-rw-r--r--webui/src/components/Content/index.tsx2
1 files changed, 2 insertions, 0 deletions
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<Props> = ({ markdown }: Props) => {
const content = unified()
.use(parse)
+ .use(gemoji)
.use(html)
.use(remark2react, {
remarkReactComponents: {