react-latex
Advanced tools
Comparing version 0.0.8 to 0.1.1
@@ -5,3 +5,3 @@ 'use strict'; | ||
var latexString = function latexString(string) { | ||
var latexString = function latexString(string, options) { | ||
@@ -25,3 +25,3 @@ string = string.replace(/(<([^>]+)>)/ig, ''); | ||
try { | ||
renderedString = katex.renderToString(s); | ||
renderedString = katex.renderToString(s, options); | ||
} catch (err) { | ||
@@ -81,7 +81,9 @@ console.error('couldn`t convert string', s); | ||
propTypes: { | ||
children: React.PropTypes.string | ||
children: React.PropTypes.string, | ||
displayMode: React.PropTypes.bool | ||
}, | ||
getDefaultProps: function getDefaultProps() { | ||
return { | ||
children: '' | ||
children: '', | ||
displayMode: false | ||
}; | ||
@@ -88,0 +90,0 @@ }, |
{ | ||
"name": "react-latex", | ||
"version": "0.0.8", | ||
"version": "0.1.1", | ||
"description": "React component to render latex strings", | ||
@@ -36,3 +36,3 @@ "homepage": "", | ||
"gulp-mocha": "^2.0.0", | ||
"gulp-nsp": "^0.4.5", | ||
"gulp-nsp": "2.4.2", | ||
"gulp-plumber": "^1.0.0", | ||
@@ -39,0 +39,0 @@ "gulp-rename": "^1.2.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7
1250719
27197