Socket
Socket
Sign inDemoInstall

react-mathjax

Package Overview
Dependencies
7
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-mathjax

React component to render math using MathJax


Version published
Weekly downloads
5.6K
decreased by-12%
Maintainers
1
Install size
1.00 MB
Created
Weekly downloads
 

Changelog

Source

[1.0.1]

  • Update MathJax to 2.7.4

Readme

Source

react-mathjax

NPM version

React component to display math formulas.

Installation

$ npm i react-mathjax --save

Usage

const MathJax = require('react-mathjax')
const tex = `f(x) = \\int_{-\\infty}^\\infty
    \\hat f(\\xi)\\,e^{2 \\pi i \\xi x}
    \\,d\\xi`

module.exports = () => {
    return (
        <MathJax.Provider>
            <div>
                This is an inline math formula: <MathJax.Node inline formula={'a = b'} />
                And a block one:

                <MathJax.Node formula={tex} />
            </div>
        </MathJax.Provider>
    );
}

Keywords

FAQs

Last updated on 06 Jun 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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