changeset 943:b8d09525a0b4 draft

Typeset dynamically loaded document when MathJax is active
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 25 Oct 2021 23:00:23 +0900
parents 5d70fa029f8d
children 3891edb19b0b
files s4-main.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/s4-main.js	Mon Oct 25 18:39:44 2021 +0900
+++ b/s4-main.js	Mon Oct 25 23:00:23 2021 +0900
@@ -176,6 +176,9 @@
 	    }, 100);
 	    cnt++;
 	}
+	if (MathJax.typesetPromise) {
+	    MathJax.typesetPromise(); // MathJax v3
+	}
 	console.log("Update "+cnt+"rows");
 	if (cnt>0 && ntr.scrollIntoView) {
 	    let option = {behavior: "smooth"};

yatex.org