diff --git a/src/buildHTML.js b/src/buildHTML.js index 8255b01..e12b917 100644 --- a/src/buildHTML.js +++ b/src/buildHTML.js @@ -113,8 +113,10 @@ var getTypeOfDomTree = function(node) { node.children[node.children.length - 1]); } } else { - if (utils.contains(["mord", "mop", "mbin", "mrel", "mopen", "mclose", - "mpunct", "minner"], node.classes[0])) { + if (utils.contains([ + "mord", "mop", "mbin", "mrel", "mopen", "mclose", + "mpunct", "minner", + ], node.classes[0])) { return node.classes[0]; } } @@ -723,8 +725,7 @@ groupTypes.spacing = function(group, options) { // Other kinds of spaces are of arbitrary width. We use CSS to // generate these. return makeSpan( - ["mspace", - buildCommon.spacingFunctions[group.value].className], + ["mspace", buildCommon.spacingFunctions[group.value].className], [], options); } }; diff --git a/src/buildMathML.js b/src/buildMathML.js index 6c17d41..fdea803 100644 --- a/src/buildMathML.js +++ b/src/buildMathML.js @@ -194,8 +194,10 @@ groupTypes.supsub = function(group, options) { groupTypes.genfrac = function(group, options) { var node = new mathMLTree.MathNode( "mfrac", - [buildGroup(group.value.numer, options), - buildGroup(group.value.denom, options)]); + [ + buildGroup(group.value.numer, options), + buildGroup(group.value.denom, options), + ]); if (!group.value.hasBarLine) { node.setAttribute("linethickness", "0px"); @@ -298,8 +300,7 @@ groupTypes.accent = function(group, options) { var node = new mathMLTree.MathNode( "mover", - [buildGroup(group.value.base, options), - accentNode]); + [buildGroup(group.value.base, options), accentNode]); node.setAttribute("accent", "true"); @@ -451,8 +452,7 @@ groupTypes.overline = function(group, options) { var node = new mathMLTree.MathNode( "mover", - [buildGroup(group.value.body, options), - operator]); + [buildGroup(group.value.body, options), operator]); node.setAttribute("accent", "true"); return node; @@ -465,8 +465,7 @@ groupTypes.underline = function(group, options) { var node = new mathMLTree.MathNode( "munder", - [buildGroup(group.value.body, options), - operator]); + [buildGroup(group.value.body, options), operator]); node.setAttribute("accentunder", "true"); return node;