diff --git a/ctop.js b/ctop.js index b62a838..77544f0 100644 --- a/ctop.js +++ b/ctop.js @@ -1,3 +1,5 @@ +var CToP = +(function() { /* * Content MathML to Presentation MathML conversion * @@ -6,17 +8,24 @@ */ var CToP = { - /* Transform the given elements from Content MathML to Presentation MathML + /* Transform the given elements from Content MathML to Presentation MathML and replace the original elements */ transform: function(elements){ for (var i = 0; i< elements.length;i++){ - var mathNode = elements[i].cloneNode(false); - for(var j=0;j