From 9b9ec99ee81ecf906a9c7c568853662859b1d7bb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 9 Dec 2016 21:18:02 +0100 Subject: We no longer need the MathMLInHTML.js shim from 2004! --- data/MathMLinHTML.js | 70 ---------------------------------------------------- pandoc.cabal | 1 - pandoc.hs | 3 --- 3 files changed, 74 deletions(-) delete mode 100644 data/MathMLinHTML.js diff --git a/data/MathMLinHTML.js b/data/MathMLinHTML.js deleted file mode 100644 index 2ab05c686..000000000 --- a/data/MathMLinHTML.js +++ /dev/null @@ -1,70 +0,0 @@ -/* -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].value); - 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/pandoc.cabal b/pandoc.cabal index fd2e1b585..69258d2ec 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -97,7 +97,6 @@ Data-Files: data/epub.css -- data for LaTeXMathML writer data/LaTeXMathML.js - data/MathMLinHTML.js -- data for dzslides writer data/dzslides/template.html -- sample lua custom writer diff --git a/pandoc.hs b/pandoc.hs index a0899adb6..9c4e62cb4 100644 --- a/pandoc.hs +++ b/pandoc.hs @@ -1319,9 +1319,6 @@ convertWithOpts opts args = do LaTeXMathML Nothing -> do s <- readDataFileUTF8 datadir "LaTeXMathML.js" return $ ("mathml-script", s) : variables - MathML Nothing -> do - s <- readDataFileUTF8 datadir "MathMLinHTML.js" - return $ ("mathml-script", s) : variables _ -> return variables variables'' <- if format == "dzslides" -- cgit v1.2.3