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

internal/warpc: Enable KaTeX mhchem extension #13394

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

jmooring
Copy link
Member

I ran into this limitation on the docs site while implementing math rendering with the transform.ToMath function instead of client-side rendering as we did previously. With client-side MathJax, chemistry support was included which is why we have this example:

https://gohugo.io/content-management/mathematics/#chemistry

This also bumps KaTeX to the latest version.

@jmooring jmooring force-pushed the katex-enable-mhchem-extension branch from 78db3ab to f7eca72 Compare February 13, 2025 22:24
@bep
Copy link
Member

bep commented Feb 14, 2025

I will merge this, but my near future goal is to get some kind of hugo pack command that would allow us/others to build Wasm files for Hugo that they could import via Hugo modules (for math, but I guess other stuff down the line).

@bep bep merged commit 503dcf6 into gohugoio:master Feb 14, 2025
6 checks passed
@jmooring jmooring deleted the katex-enable-mhchem-extension branch February 14, 2025 09:15
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