mathjax / MathJax-src

MathJax source code for version 3 and beyond
https://www.mathjax.org/
Apache License 2.0
2.05k stars 205 forks source link

make typesetPromise() wait for speech to be attached, add synchronous option, and copy ARIA labels to internal MathML #1113

Closed dpvc closed 3 months ago

dpvc commented 3 months ago

This PR implements the ideas we discussed in our meeting yesterday:

In addition, a bug with the defaultPageReady() call is fixed, so that it will resolve the initial typesetting promise. That way, if a user provides a pageReady() configuration function, it can call the promise-based converters, which now wait on that promise before they run. That was causing a catch-22 where the pageReady() call never completed because the initial typeset promise was being resolved only in the ready() function (which calls pageReady()).

zorkow commented 3 months ago

When experimenting with this PR, I ran into a build error. Please see my email on it.