Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update KaTeX Version #725

Open
yourealwaysbe opened this issue Apr 6, 2021 · 2 comments
Open

Update KaTeX Version #725

yourealwaysbe opened this issue Apr 6, 2021 · 2 comments

Comments

@yourealwaysbe
Copy link

Is your feature request related to a problem? Please describe.
The current version of KaTeX is 0.13.0, Idyll uses 0.9.0. In particular \newcommand and similar is supported in 0.13.0, but does not appear to be supported in 0.9.0. \newcommand is very useful for serious mathematical articles.

Describe the solution you'd like
Update to 0.13.0.

Describe alternatives you've considered
Could not think of alternatives (except bookdown :) ).

@mathisonian
Copy link
Member

This makes sense to me. We'd need to edit the CSS file that gets included (https://github.com/idyll-lang/idyll/blob/master/packages/idyll-cli/src/client/_index.html#L36-L41), upgrade the dependency in idyll-components and make sure the Equation component is functioning properly with the new version.

@mathisonian
Copy link
Member

I think we should drop react-latex-patched in favor of https://www.npmjs.com/package/react-latex since that one seems to be more widely used and up-to-date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants