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

Fix: equation compatible with KateX and GitHub #7602

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

FrancoisCapon
Copy link
Contributor

Hi,

With my students we discovered that the former equation is not compatible with GitHub and KateX

GitHub

The following macros are not allowed: operatorname

Katex

auto-render.min.js:1 
 KaTeX auto-render: Failed to parse `
\operatorname{ker} f=\{g\in G:f(g)=e_{H}\}{\mbox{.}}
` with  ParseError: KaTeX parse error: Undefined control sequence: \mbox at position 45: …G:f(g)=e_{H}\}{\̲m̲b̲o̲x̲{.}}

@squidfunk
Copy link
Owner

Thanks for the PR. So you're proposing another example that works with both, MathJax and KaTeX, do I understand that correctly? Otherwise, I'm not sure why the entire formula was changed 😅

@alexvoss
Copy link
Collaborator

alexvoss commented Oct 8, 2024

Indeed, \mbox is not supported by KaTeX. The proposed formula works in the KaTeX sandbox on their website and on this MathJax sandbox.

@squidfunk
Copy link
Owner

Alright, let's use this one then.

@squidfunk squidfunk merged commit f0c99d8 into squidfunk:master Oct 8, 2024
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.

3 participants