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

Detecting when asynchronous plugins (KaTeX) finish #3740

Open
lenianiva opened this issue Jan 26, 2025 · 0 comments
Open

Detecting when asynchronous plugins (KaTeX) finish #3740

lenianiva opened this issue Jan 26, 2025 · 0 comments

Comments

@lenianiva
Copy link

I want to leverage the \htmlId macro in KaTeX to produce math animations, but the KaTeX plugin in Reveal is asynchronous. Suppose that I have \htmlId{target}{x} in a block of KaTeX. Executing

deck.initialize().then(() => {
	const elemTarget = document.getElementById("target");
});

Does not always give back an element. Is there a way to force this code to run after KaTeX is ready?

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