s4

diff s4-main.js @ 943:b8d09525a0b4

Typeset dynamically loaded document when MathJax is active
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 25 Oct 2021 23:00:23 +0900
parents 6c2f8bb3cc6e
children 3891edb19b0b
line diff
     1.1 --- a/s4-main.js	Mon Sep 06 09:11:25 2021 +0900
     1.2 +++ b/s4-main.js	Mon Oct 25 23:00:23 2021 +0900
     1.3 @@ -176,6 +176,9 @@
     1.4  	    }, 100);
     1.5  	    cnt++;
     1.6  	}
     1.7 +	if (MathJax.typesetPromise) {
     1.8 +	    MathJax.typesetPromise(); // MathJax v3
     1.9 +	}
    1.10  	console.log("Update "+cnt+"rows");
    1.11  	if (cnt>0 && ntr.scrollIntoView) {
    1.12  	    let option = {behavior: "smooth"};