react-remark
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -33,3 +33,3 @@ 'use strict'; | ||
this.md = new _remarkable2['default']({ | ||
html: this.props.html || false | ||
html: this.props.html | ||
}); | ||
@@ -42,2 +42,3 @@ } | ||
return _react2['default'].createElement('span', { | ||
className: '' + this.props.className, | ||
dangerouslySetInnerHTML: { __html: this.md.render(this.props.source) } | ||
@@ -52,2 +53,3 @@ }); | ||
ReactRemark.propTypes = { | ||
className: _react2['default'].PropTypes.string, | ||
html: _react2['default'].PropTypes.bool, | ||
@@ -57,3 +59,8 @@ source: _react2['default'].PropTypes.string | ||
_react2['default'].defaultProps = { | ||
className: 'react-remark', | ||
html: false | ||
}; | ||
exports['default'] = ReactRemark; | ||
module.exports = exports['default']; |
{ | ||
"name": "react-remark", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "react-remark", | ||
@@ -5,0 +5,0 @@ "main": "lib/ReactRemark.js", |
@@ -8,3 +8,3 @@ import React from 'react'; | ||
this.md = new Remarkable({ | ||
html: this.props.html || false | ||
html: this.props.html | ||
}); | ||
@@ -16,2 +16,3 @@ } | ||
<span | ||
className={`${this.props.className}`} | ||
dangerouslySetInnerHTML={{ __html: this.md.render(this.props.source) }} | ||
@@ -24,2 +25,3 @@ /> | ||
ReactRemark.propTypes = { | ||
className: React.PropTypes.string, | ||
html: React.PropTypes.bool, | ||
@@ -29,2 +31,7 @@ source: React.PropTypes.string | ||
React.defaultProps = { | ||
className: 'react-remark', | ||
html: false | ||
}; | ||
export default ReactRemark; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
387424
9323