asciimath / asciimathml

A new home for asciimathml
http://asciimath.org/
MIT License
957 stars 183 forks source link

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

Open khirasaki opened 1 year ago

khirasaki commented 1 year ago

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 commented 1 year ago

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.