react-highlight
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -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", |
10370