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

react-latex

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-latex - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

10

dist/Latex.js
'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 @@ );

2

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

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