Add version to katex object (#1279)

* Add version to katex object

Address khan/KaTeX#1190

* Update package.json before building
This commit is contained in:
Ethan Luis McDonough
2018-05-02 16:45:49 -05:00
committed by Erik Demaine
parent 5535d720dc
commit 2554f68297
2 changed files with 12 additions and 6 deletions

View File

@@ -20,6 +20,8 @@ import type ParseNode from "./src/ParseNode";
import { defineSymbol } from './src/symbols';
import { version } from "./package.json";
/**
* Parse and build an expression, and place that expression in the DOM node
* given.
@@ -97,6 +99,10 @@ const renderToHTMLTree = function(
};
export default {
/**
* Current KaTeX version
*/
version,
/**
* Renders the given LaTeX into an HTML+MathML combination, and adds
* it as a child to the specified DOM node.