react-latex
Advanced tools
Comparing version 0.0.1 to 0.0.2
'use strict'; | ||
var React = window.React || require('react'); | ||
var TeX = require('react-components/js/tex.jsx'); | ||
var detectLatex = function detectLatex(string) { | ||
@@ -50,2 +52,8 @@ var regularExpression = arguments.length <= 1 || arguments[1] === undefined ? /\$\$[\s\S]+?\$\$|\$[\s\S]+?\$/g : arguments[1]; | ||
getDefaultProps: function getDefaultProps() { | ||
return { | ||
className: '' | ||
}; | ||
}, | ||
getInitialState: function getInitialState() { | ||
@@ -79,3 +87,3 @@ var patternToDected = /\$\$[\s\S]+?\$\$|\$[\s\S]+?\$/g; | ||
'string', | ||
{ className: className }, | ||
{ className: this.props.className }, | ||
content | ||
@@ -82,0 +90,0 @@ ); |
{ | ||
"name": "react-latex", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "React component to render latex strings", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
@@ -15,3 +15,3 @@ # react-latex [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] | ||
```js | ||
var reactLatex = require('react-latex'); | ||
var Latex = require('react-latex'); | ||
@@ -18,0 +18,0 @@ ... |
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
5711
86