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

Custom delimiters are not always preserved in the HTML #43

Open
liffiton opened this issue Sep 20, 2024 · 0 comments
Open

Custom delimiters are not always preserved in the HTML #43

liffiton opened this issue Sep 20, 2024 · 0 comments

Comments

@liffiton
Copy link
Owner

This plugin has to "protect" MathJax delimiters from Dokuwiki's parsing so that they are left unchanged in the HTML sent to the browser (where MathJax does its parsing). The plugin does not parse the MathJax config to see what custom delimiters may have been set, though, so it only protects the standard ones. #42 shows a case of using <m> delimiters for ASCIIMath, which breaks because Dokuwiki will convert < to &lt; in the HTML sent to the browser. Custom delimiters like <m> work if you wrap them in %% to manually prevent Dokuwiki's parsing, but of course that's not an ideal solution.

Needed solution: parsing the MathJax config to protect just the delimiters set there.

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

No branches or pull requests

1 participant