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

react-markdown

Package Overview
Dependencies
Maintainers
2
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 5.0.0 to 5.0.1

5

changelog.md

@@ -5,2 +5,7 @@ # Change Log

## 5.0.1 - 2020-10-21
* [`c3dc5ee`](https://github.com/remarkjs/react-markdown/commit/c3dc5ee)
Fix to not crash on empty text nodes
## 5.0.0 - 2020-10-19

@@ -7,0 +12,0 @@

4

lib/renderers.js

@@ -43,4 +43,6 @@ /* eslint-disable react/prop-types, react/no-multi-comp */

function TextRenderer(props) {
var children = props.children || '';
/* istanbul ignore next - `span` is a fallback for old React. */
return supportsStringRender ? props.children : createElement('span', null, props.children);
return supportsStringRender ? children : createElement('span', null, children);
}

@@ -47,0 +49,0 @@

{
"name": "react-markdown",
"version": "5.0.0",
"version": "5.0.1",
"description": "Render Markdown as React components",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -15,9 +15,2 @@ # react-markdown

## Note
We’re currently really busy updating this project!
See [GH-470](https://github.com/remarkjs/react-markdown/issues/470) for more
info.
Expect a new release (documented below) in a couple days!
## Install

@@ -149,3 +142,3 @@

This example shows how to use a plugin.
In this case, [`remark-gfm`][gfm], which adds support for which adds support for
In this case, [`remark-gfm`][gfm], which adds support for
strikethrough, tables, tasklists and URLs directly:

@@ -152,0 +145,0 @@

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