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 +++++++++++++++ templates/jsmath.tmpl | 205 ++++++++++++++++++++++++++++++++++++++++++++ templates/latexmathml.tmpl | 206 +++++++++++++++++++++++++++++++++++++++++++++ templates/mathjax.tmpl | 205 ++++++++++++++++++++++++++++++++++++++++++++ templates/mathml.tmpl | 197 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 883 insertions(+) create mode 100644 static/js/mathml.js create mode 100644 templates/jsmath.tmpl create mode 100644 templates/latexmathml.tmpl create mode 100644 templates/mathjax.tmpl create mode 100644 templates/mathml.tmpl 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); +} diff --git a/templates/jsmath.tmpl b/templates/jsmath.tmpl new file mode 100644 index 0000000..bea7083 --- /dev/null +++ b/templates/jsmath.tmpl @@ -0,0 +1,205 @@ + + + + + + + + + + + + +<TMPL_VAR TITLE> + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + +
+ +
+ +
+ + + +
+ + + + +
Comments on this page are closed.
+
+
+
+
+ + + +
+ + + + + + + +
+ +License: +
+
+ +
+Last edited + +
+ + + + + +
+ +
+ + + diff --git a/templates/latexmathml.tmpl b/templates/latexmathml.tmpl new file mode 100644 index 0000000..9daa2c6 --- /dev/null +++ b/templates/latexmathml.tmpl @@ -0,0 +1,206 @@ + + + + + + + + + + + + +<TMPL_VAR TITLE> + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + +
+ +
+ +
+ + + +
+ + + + +
Comments on this page are closed.
+
+
+
+
+ + + +
+ + + + + + + +
+ +License: +
+
+ +
+Last edited + +
+ + + + + +
+ +
+ + + diff --git a/templates/mathjax.tmpl b/templates/mathjax.tmpl new file mode 100644 index 0000000..6f19a60 --- /dev/null +++ b/templates/mathjax.tmpl @@ -0,0 +1,205 @@ + + + + + + + + + + + + +<TMPL_VAR TITLE> + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + +
+ +
+ +
+ + + +
+ + + + +
Comments on this page are closed.
+
+
+
+
+ + + +
+ + + + + + + +
+ +License: +
+
+ +
+Last edited + +
+ + + + + +
+ +
+ + + diff --git a/templates/mathml.tmpl b/templates/mathml.tmpl new file mode 100644 index 0000000..cca833d --- /dev/null +++ b/templates/mathml.tmpl @@ -0,0 +1,197 @@ + + + + + + + + + + + + +<TMPL_VAR TITLE> + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + +
+ +
+ +
+ + + +
+ + + + +
Comments on this page are closed.
+
+
+
+
+ + + +
+ + + + + + + +
+ +License: +
+
+ +
+Last edited + +
+ + + + + +
+ +
+ + + -- cgit v1.2.3