From e0441e4abd3869f3a3aa57322dbd7785a9f36bdb Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 15 Sep 2014 21:43:13 +0200 Subject: Include pandoc From https://github.com/sciunto/ikiwiki-pandoc --- static/js/mathml.js | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 static/js/mathml.js (limited to 'static') diff --git a/static/js/mathml.js b/static/js/mathml.js new file mode 100644 index 0000000..a72c2e5 --- /dev/null +++ b/static/js/mathml.js @@ -0,0 +1,70 @@ +/* +March 19, 2004 MathHTML (c) Peter Jipsen http://www.chapman.edu/~jipsen +Released under the GNU General Public License version 2 or later. +See the GNU General Public License (at http://www.gnu.org/copyleft/gpl.html) +for more details. +*/ + +function convertMath(node) {// for Gecko + if (node.nodeType==1) { + var newnode = + document.createElementNS("http://www.w3.org/1998/Math/MathML", + node.nodeName.toLowerCase()); + for(var i=0; i < node.attributes.length; i++) + newnode.setAttribute(node.attributes[i].nodeName, + node.attributes[i].nodeValue); + for (var i=0; i"); + document.write(""); +} +if(typeof window.addEventListener != 'undefined'){ + window.addEventListener('load', convert, false); +} +if(typeof window.attachEvent != 'undefined') { + window.attachEvent('onload', convert); +} -- cgit v1.2.3