diff --git a/lib/core/Remarkable.js b/lib/core/Remarkable.js index 710021a417..c39a9f795f 100644 --- a/lib/core/Remarkable.js +++ b/lib/core/Remarkable.js @@ -18,12 +18,6 @@ function anchors(md) { } class Remarkable extends React.Component { - componentWillUpdate(nextProps, nextState) { - if (nextProps.options !== this.props.options) { - this.md = new Markdown(nextProps.options); - } - } - content() { if (this.props.source) { return ; @@ -61,7 +55,9 @@ class Remarkable extends React.Component { } catch (err) {} return ''; - } + }, + html: true, + linkify: true, }); // Register anchors plugin @@ -90,12 +86,11 @@ class Remarkable extends React.Component { {this.content()} ); - } + } } Remarkable.defaultProps = { container: 'div', - options: {}, }; module.exports = Remarkable;