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

Show a warning when a content area contains pasted MathJax output #762

Open
christianp opened this issue Feb 28, 2023 · 1 comment
Open

Comments

@christianp
Copy link
Member

MathJax uses id attributes on its output to identify expressions that it's typesetting, with a counter that increments from 0 after the page loads.
So if you paste output from a previous run into a content area, MathJax will eventually get to the same id attribute as it processes TeX in the page, and throw an error when it finds the pasted element instead of the one it's just created.

The editor should detect elements with MathJax attributes, starting with MathJax-, and show a warning.

@christianp
Copy link
Member Author

This is really the same thing as #648.

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

1 participant