@nteract/mathjax
    TypeScript icon, indicating that this package has built-in type declarations

    4.0.16 • Public • Published

    @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

    Keywords

    Install

    npm i @nteract/mathjax

    DownloadsWeekly Downloads

    5,233

    Version

    4.0.16

    License

    BSD-3-Clause

    Unpacked Size

    39.8 kB

    Total Files

    28

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar