Skip to content

Exposing the build tree.#1017

Merged
k4b7 merged 4 commits intoKaTeX:masterfrom
ry-randall:expose-buildtree
Dec 11, 2017
Merged

Exposing the build tree.#1017
k4b7 merged 4 commits intoKaTeX:masterfrom
ry-randall:expose-buildtree

Conversation

@ry-randall
Copy link
Copy Markdown
Member

As a user I would like to expose Katex's buildTree for more advanced use cases (like rendering to a custom output other than DOM)

While this thread tracks an intermediate representation, it would be nice if users could leverage what exists in the meantime (with the caveat that it's likely to change).

This PR follows a similar convention to the parseTree in that user's are welcome to use it, but are given an appropriate warning message.

@k4b7
Copy link
Copy Markdown
Member

k4b7 commented Dec 11, 2017

@rrandallcainc looks reasonable to me.

Comment thread katex.js
* to change. Use at your own risk.
*/
__parse: generateParseTree,
__getBuildTree: generateBuildTree,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a warning above this function as well?

@k4b7 k4b7 merged commit 36ca9be into KaTeX:master Dec 11, 2017
@k4b7
Copy link
Copy Markdown
Member

k4b7 commented Dec 11, 2017

Thanks for the PR.

@ry-randall ry-randall deleted the expose-buildtree branch December 11, 2017 01:03
This was referenced Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants