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

Does not work with Ajax Comment Preview #19

Open
scoskey opened this issue Mar 14, 2018 · 1 comment
Open

Does not work with Ajax Comment Preview #19

scoskey opened this issue Mar 14, 2018 · 1 comment

Comments

@scoskey
Copy link
Contributor

scoskey commented Mar 14, 2018

https://wordpress.org/support/topic/does-not-work-with-ajax-comment-preview/

The LaTeX I type in the comments is not rendered in the preview made by the plugin Ajax Comment Preview. Is there anything I can do about it? It does work with WP QuickLaTeX.

@pkra
Copy link
Member

pkra commented Jul 12, 2019

We could add a mutation observer to run MathJax on new content being added to the DOM. This could help more generally with dynamically added content (e.g., JS-based page transitions).

That could impact performance pretty badly in generality but we could make it an opt-in and we could have an option to specify a CSS selector and only attach the observer to matching elements.

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

2 participants