Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

react-latex

1.2.0 • Public • Published

react-latex NPM versionDependency StatusBuild Status

React component to render latex strings, based on Katex

Install

$ npm install --save react-latex

Usage

In javascript

var Latex = require('react-latex');
 
...
    render(){
        return (
            <h3>
                <Latex>What is $(3\times 4) \div (5-3)$</Latex>
            </h3>
        );
    }
...

Include in your html Katex CSS

 
<html>
    <head>
        <link href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.8.3/katex.min.css" rel="stylesheet">
    </head>
</html>
 

License

MIT © Zzish

install

npm i react-latex

Downloadsweekly downloads

332

version

1.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability