Khan / react-components

khan.github.io/react-components/
MIT License
1.01k stars 99 forks source link

Update the <TeX> component to the latest upstream KaTeX #66

Closed davidflanagan closed 6 years ago

davidflanagan commented 6 years ago

Summary: This diff updates docs/js/katex.js to c71ee4bdd5439c39e78ef2e91c9a2ddb8053844f which is approximately v0.90-beta and modifies the component to use the new colorIsTextColor option for backward-compatible handling of \color{}. It adds a test to ensure that the option has the desired effect. It also makes a number of updates to js/katex-a11y.js to bring it back in sync with the latest KaTeX.

Test plan:

Reviewers: emily, kevinb

Reviewed by: kevinb

Differential Revision: https://phabricator.khanacademy.org/D41809

davidflanagan commented 6 years ago

This patch was reviewed and approved by @kevinbarabash through phabricator

ariabuckles commented 6 years ago

Yay thanks @davidflanagan!