From 42a3b37a1da53f3e9d881475b590ef61163fa167 Mon Sep 17 00:00:00 2001 From: leoliu Date: Thu, 27 Aug 2020 11:05:03 +0800 Subject: [PATCH] fix: Support rendering html in markdown component. Signed-off-by: leoliu --- src/components/Base/Markdown/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Base/Markdown/index.jsx b/src/components/Base/Markdown/index.jsx index d5bf02bb8c8..f83c169d405 100644 --- a/src/components/Base/Markdown/index.jsx +++ b/src/components/Base/Markdown/index.jsx @@ -39,7 +39,7 @@ class Markdown extends React.Component { super(props) this.iframeLoaded = false - this.md = new MarkdownIt(props.options) + this.md = new MarkdownIt({ html: true, linkify: true, ...props.options }) this.state = { loading: true, }