and (LON-CAPA ln and dlm tags)
+ */
+var updateMathSpanAndDiv = function() {
+ var nl = document.getElementsByClassName('math');
+ // convert to an array because the nodelist would change as we are removing nodes from the document
+ var math_nodes = [];
+ for (var i = 0, ref = math_nodes.length = nl.length; i < ref; i++) {
+ math_nodes[i] = nl[i];
+ }
+ for (var i=0; i