aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components/Content/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/components/Content/index.tsx')
-rw-r--r--webui/src/components/Content/index.tsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/webui/src/components/Content/index.tsx b/webui/src/components/Content/index.tsx
index 56e52e1e..75360bb6 100644
--- a/webui/src/components/Content/index.tsx
+++ b/webui/src/components/Content/index.tsx
@@ -4,23 +4,25 @@ import parse from 'remark-parse';
import remark2react from 'remark-react';
import unified from 'unified';
+import BlockQuoteTag from './BlockQuoteTag';
import ImageTag from './ImageTag';
import PreTag from './PreTag';
type Props = { markdown: string };
const Content: React.FC<Props> = ({ markdown }: Props) => {
- const processor = unified()
+ const content = unified()
.use(parse)
.use(html)
.use(remark2react, {
remarkReactComponents: {
img: ImageTag,
pre: PreTag,
+ blockquote: BlockQuoteTag,
},
- });
+ })
+ .processSync(markdown).result;
- const contents: React.ReactNode = processor.processSync(markdown).contents;
- return <>{contents}</>;
+ return <>{content}</>;
};
export default Content;