Closed etiennebacher closed 3 years ago
This is great! Thanks so much. A few changes:
if (window.MathJax) {setTimeout(function(){ MathJax.Hub.Queue(['Typeset', MathJax.Hub]); }, 400)}
onafterchange
callback in the rintro.js
Thanks again!
I moved the code and added the condition. Concerning the NEWS.md
, I added a new section but not sure if it's what you want.
Ah I just noticed that you already created a section for 0.3.0, but my branch wasn't up to date, I'll let you resolve the conflicts then (I don't think I can do something, right?) ;)
This PR is greatly inspired by John Coene's commit in
cicerone
. Note that MathJax won't be applied if the delay insetTimeout
is lower than 400.Here's an example without any other code in
onafterchange
:This also works when there is other code in
onafterchange
. Replaceevents = list()
by the following:and run it in browser to check the console.