Skip to content

Commit

Permalink
fix: Support rendering html in markdown component.
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Aug 27, 2020
1 parent c26664a commit 42a3b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Base/Markdown/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 42a3b37

Please sign in to comment.