rmk
react-mathjax-kangaroo
npm i react-mathjax-kangaroo
rmk

react-mathjax-kangaroo

React component to display math formulas

by Samy Pessé

0.1.2 (see all)License:Apache-2.0TypeScript:Not Found
npm i react-mathjax-kangaroo
Readme

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.Context>
            <div>
                This is an inline math formula: <MathJax.Node inline>{'a = b'}</MathJax.Node>
                And a block one:

                <MathJax.Node>{tex}</MathJax.Node>
            </div>
        </MathJax.Context>
    );
}

Downloads/wk

1

GitHub Stars

85

LAST COMMIT

4yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

11

OPEN PRs

26
VersionTagPublished
0.1.2
latest
5yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate