packages feed

texmath 0.8.6.2 → 0.8.6.3

raw patch · 4 files changed

+13/−9 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

cgi/texmath.html view
@@ -2,7 +2,7 @@ <html lang="en"> <head>   <meta charset="utf-8">-  <title>stmd.js demo</title>+  <title>texmath demo</title>   <script type="text/x-mathjax-config">     MathJax.Hub.Config({       config: ["MMLorHTML.js"],@@ -34,7 +34,7 @@        $(document).ready(function(){         $('#convert-latex2mathml').click(function() {-          $.getJSON("/cgi-bin/texmath-cgi",+          $.post("/cgi-bin/texmath-cgi",                    { 'input' : $('#latex-input').val(),                      'from': 'tex',                      'to': 'mathml' },@@ -48,10 +48,10 @@                      $('#preview').html('');                    };                    MathJax.Hub.Queue(["Typeset",MathJax.Hub,"preview"]);-                })+                }, 'json')             });         $('#convert-mathml2latex').click(function() {-          $.getJSON("/cgi-bin/texmath-cgi",+          $.post("/cgi-bin/texmath-cgi",                    { 'input' : $('#mathml-input').val(),                      'from': 'mathml',                      'to': 'tex' },@@ -65,7 +65,7 @@                      $('#preview').text('');                    };                    MathJax.Hub.Queue(["Typeset",MathJax.Hub,"preview"]);-                })+                }, 'json')             });         $('a[data-toggle="tab"]').click(function (e) {           $('#preview').text(''); // clear preview
changelog view
@@ -1,3 +1,7 @@+texmath (0.8.6.3)++  * Use POST instead of GET for texmath-cgi.+ texmath (0.8.6.2)    * Fixed array alignment issues (jgm/pandoc#2864, jgm/pandoc#2310).
extra/texmath.hs view
@@ -147,14 +147,14 @@  runCGI :: IO () runCGI = do-  query <- getEnv "QUERY_STRING"+  query <- getContents   let topairs xs = case break (=='=') xs of                         (ys,('=':zs)) -> (urlUnencode ys, urlUnencode zs)                         (ys,_)        -> (urlUnencode ys,"")   let pairs = map topairs $ splitOn "&" query   inp <- case lookup "input" pairs of-              Just x   -> return x-              Nothing  -> err True 11 "Querry missing 'input'"+                 Just x  -> return x+                 Nothing -> err True 3 "Query missing 'input'"   reader <- case lookup "from" pairs of                  Just x  -> case lookup x readers of                                  Just y  -> return y
texmath.cabal view
@@ -1,5 +1,5 @@ Name:                texmath-Version:             0.8.6.2+Version:             0.8.6.3 Cabal-Version:       >= 1.10 Build-type:          Simple Synopsis:            Conversion between formats used to represent mathematics.