Ninja Pirate Marksman

    jstransformer-katex

    0.0.1 • Public • Published

    jstransformer-katex

    JSTransformers plumbing for rendering LaTeX formulas into HTML using KaTeX.

    BuildStatus DependencyStatus CoverageStatus NPMversion

    Installation

    npm install jstransformer-katex
    

    Usage

    var transformer = require('jstransformer');
    var katex = transformer(require('jstransformer-katex'));
    
    var options = {};
    var res = katex.render('c = \\pm\\sqrt{a^2 + b^2}', options);
    // => {body: '<span class="katex">...</span>', dependencies: []}
    

    Make sure to include KaTeX CSS and font files in your html. Options documentation is here.

    License

    MIT

    Install

    npm i jstransformer-katex

    DownloadsWeekly Downloads

    2

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • andreabedini