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

Escape backslashes so that they make it to MathJax #343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moble
Copy link

@moble moble commented Jan 25, 2025

Without the escapes, JavaScript interprets the backslashes as starting escape sequences, and the LaTeX fails to render properly, as can be seen by looking at the docs. For example, '\sqrt' shows up as sqrt in the x-axis; it should be an actual square-root sign.

We just want backslashes passed through to LaTeX, so this PR escapes the backslashes. It renders properly, as can be verified by pasting into codepen.

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.

1 participant