4.0.16 • Published 3 years ago

@nteract/mathjax v4.0.16

Weekly downloads
10,548
License
BSD-3-Clause
Repository
github
Last release
3 years ago

@nteract/mathjax

This package contains two main components, <MathJax.Context> and <MathJax.Node>. The <MathJax.Context> component loads MathJax and makes it available to children elements via the React Context API. <MathJax.Node> takes raw text for rendering and uses MathJax to render formatted math.

Installation

$ yarn add @nteract/mathjax
$ npm install --save @nteract/mathjax

Usage

The Redux reducer below shows how we can leverage the actions and action types in this package to create a reducer for managing the status of a save event.

import MathJax from "@nteract/mathjax";

export default text => {
  return (
    <MathJax.Context>
      <MathJax.Node>{`x^2 + y^2 = z^2`}</MathJax.Node>
      <MathJax.Node>{text}</MathJax.Node>
    </MathJax.Context>
  );
};

Documentation

You can view the reference documentation for @nteract/mathjax in the the examples documentation.

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board.

License

BSD-3-Clause

4.0.16

3 years ago

4.0.15

3 years ago

4.0.14

3 years ago

4.0.13

4 years ago

4.0.12

4 years ago

4.0.11

4 years ago

4.0.10

4 years ago

4.0.9

4 years ago

4.0.8

4 years ago

4.0.8-alpha.0

4 years ago

4.0.7

4 years ago

4.0.7-alpha.0

4 years ago

4.0.6-alpha.0

4 years ago

4.0.5

4 years ago

4.0.5-alpha.0

4 years ago

4.0.4-alpha.0

4 years ago

4.0.3-alpha.0

4 years ago

4.0.2

4 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.5-alpha.0

5 years ago

3.0.4-alpha.0

5 years ago

3.0.3-alpha.0

5 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.2.0

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago

0.0.2

6 years ago