From f7880acb02447b0e1c0643a3aac6b7f3b8349443 Mon Sep 17 00:00:00 2001 From: Ryan Randall Date: Mon, 25 Jun 2018 15:47:23 -0400 Subject: [PATCH] Expose dom tree (#1446) * Exposes domTree * Exposing domTree * Update per comment. --- katex.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/katex.js b/katex.js index c09d4bf8..ecfca5d3 100644 --- a/katex.js +++ b/katex.js @@ -189,4 +189,12 @@ export default { * adds a new macro to builtin macro list */ __defineMacro: defineMacro, + /** + * Expose the dom tree node types, which can be useful for type checking nodes. + * + * NOTE: This method is not currently recommended for public use. + * The internal tree representation is unstable and is very likely + * to change. Use at your own risk. + */ + __domTree: domTree, };