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

AsciiMath render intermittently not triggering in dropdown menu on iOS Safari #143

Open
khirasaki opened this issue Jan 7, 2023 · 1 comment

Comments

@khirasaki
Copy link

Hi, we're using AsciiMath for a new math learning website, bytelearn.com.

I'm encountering a recurring but not 100%-of-the-time issue where while using iOS Safari, if I open a dropdown menu (like for a combo box input) that uses AsciiMath in its fields, it doesn't always trigger the render, so my dropdown menu is left displaying the bare code, like "180" instead of rendering it in MathJax.

Thoughts or advice on workarounds (or fixes) to ensure the render happens?

@drlippman
Copy link
Contributor

This repo maintains the asciimath language. It sounds like you're having a rendering question using MathJax, so the MathJax repo would be a better place to post your question.

That said, since HTML <select> doesn't support math, I'm assuming you're using a custom dropdown/combobox, probably from some framework. Probably you need to see if that framework has a "on display" hook, and use the MathJax.typesetPromise function to trigger rendering after display.

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