Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-markdown

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-markdown - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

6

CHANGELOG.md

@@ -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 @@

3

lib/renderers.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc