Socket
Socket
Sign inDemoInstall

react-highlight

Package Overview
Dependencies
4
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

2

index.jsx

@@ -28,3 +28,3 @@ var hljs = require('highlight.js');

if (this.props.innerHTML) {
return <div dangerouslySetInnerHTML={{__html: this.props.children}}></div>;
return <div dangerouslySetInnerHTML={{__html: this.props.children}} className={this.props.className || null}></div>;
} else {

@@ -31,0 +31,0 @@ return <pre><code className={this.props.className}>{this.props.children}</code></pre>;

{
"name": "react-highlight",
"version": "0.2.0",
"version": "0.3.0",
"description": "React component for syntax highlighting",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc