I installed a MathJax-LaTeX plugin in my Wordpress installation, which works great. I'm wondering if if I can also get a preview of that in MarsEdit itself?
I suppose it would have to have a similar plug-in or somehow make a call to the MathJax CDN?
Hi jbruce - I'm embarrassed that I let this question go unanswered for so long. I'm sorry.
MarsEdit doesn't support plugins per se (yet?), but you can get a lot of mileage out of the customizability of the Preview Template in MarsEdit. If you can figure out whether the MathJax plugin is something that works at an HTML/JavaScripts/CSS level, then it might be possible to include the required scripts in your MarsEdit HTML preview template to get the same effects there.
Do you happen to have any idea how MathJax works on the WordPress end, beneath the surface?
MathJax looks like it uses javascript/css magic to render your formulas. It works for me when deployed in wordpress; however, adding the relevant headers to my html templates in marsedit does *not* work. (?). Marsedit preview mode presumably doesn't execute the javascript properly, or fails for some other reason.
I've also tried loading MathJax.js from a local file. And I've tried directly including the contents of that file in the template header.
None of these attempts succeeded.
Let me add that I'm not sure the root problem here is peculiar to MathJax. Other Javascript libraries (such as JQuery) also seem to be ignored in the Preview, even when they are included in script elements in the template. For me, only the very simplest Javascript functions, such as onmouseover handlers, work in the preview window; anything more complex is ignored.
Possibly I'm just doing it wrong. Any help much appreciated.