react-markdown
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -5,2 +5,8 @@ # Change Log | ||
## 4.0.2 - 2018-10-05 | ||
### Fixes | ||
* Fix text rendering in React versions lower than or equal to 15 (Espen Hovlandsdal) | ||
## 4.0.1 - 2018-10-03 | ||
@@ -7,0 +13,0 @@ |
@@ -8,2 +8,3 @@ /* eslint-disable react/prop-types, react/no-multi-comp */ | ||
var supportsStringRender = parseInt((React.version || '16').slice(0, 2), 10) >= 16; | ||
var createElement = React.createElement; | ||
@@ -41,3 +42,3 @@ module.exports = { | ||
function TextRenderer(props) { | ||
return props.children; | ||
return supportsStringRender ? props.children : createElement('span', null, props.children); | ||
} | ||
@@ -44,0 +45,0 @@ |
{ | ||
"name": "react-markdown", | ||
"description": "Renders Markdown as React components", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "markdown", |
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
114951
956