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

react-remark

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-remark - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

9

lib/ReactRemark.js

@@ -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'];

2

package.json
{
"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

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