]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/bugs/mathjax_doesn__39__t_work_anymore_after_upgrade.mdwn
(no commit message)
[git.ikiwiki.info.git] / doc / bugs / mathjax_doesn__39__t_work_anymore_after_upgrade.mdwn
index 3e946af9cc50a4ad92be988c594cc69c21f11d49..5683228224ac6844400a0f37124b7d46a0fd12c0 100644 (file)
@@ -7,3 +7,25 @@ Any idea what may be wrong here and how to fix it?
 > Maybe you can also save the html of an old page, change something in it to make it rebuilt, and diff the resulting html with the old one, to see what changed.
 >
 > -- [[Louis|spalax]]
+
+I installed mathjax via the pandoc-iki plugin as described [here](http://stackoverflow.com/a/8444409/406686)
+
+The rebuild of an old site containing math is missing the following lines:
+
+
+     <script src="/mathjax/MathJax.js?config=TeX-AMS_HTML-full" type="text/javascript"></script>
+     </head>
+     <body>
+     <noscript>
+     <div style="color:#CC0000; text-align:center">
+     <b>Warning: <a href="http://www.mathjax.org/">MathJax</a>
+     requires JavaScript to process the mathematics on this page.<br>
+     If your browser supports JavaScript, be sure it is enabled.</b>
+     </div>
+     <hr>
+     </noscript>
+
+----------------------
+
+I finally noticed that the `page.tmpl` was messed up. It seams that the upgrade deleted the relevant `mathjax` line. Adding this makes it work again. [[Thanks|done]]! 
+