This question about Missing functionality: Asked

MathJax

Could I please have some guidance on getting MathJax to work with FosWiki?

This is a continuation of Question 2013. I tried to add a comment there but was unsuccessful.

I have installed FosWiki on my laptop runing Ubuntu for personal use.

I tried naively cutting and pasting the code given there into a new topic but it just gave the text, as is.

I have not tried the experimental MathJaxPlugin as it does not seem to be supported.

-- BruceWestbury - 26 Oct 2019

Since MathJax is a javascript library, there are a few simple troubleshooting steps you can take:
  1. Look for errors in your browsers js console. Accessing this is different in differing browsers. Many browsers will have an "inspect" option when right clicking anywhere in the page. Once the developer panel is open, look for "Console tab". Reload the page and look for javascript errors.
  2. Look at the "Source" html for the rendered page. Do you see the MathJax file references in the same area as the other javascript libraries?

If you would do that and let us know what you find, then we can take it from there.

-- LynnwoodBrown - 27 Oct 2019

I think the relevant lines are:
<script class='script 3415' type=<!--3415-->
<script class='script 5936' src='https://polyfill.io/v3/polyfill.min.js?features=es6'></script><script class='script 5936' id=<!--5936-->
<script class='script JQUERYPLUGIN' type='text/javascript' src='/pub/System/JQueryPlugin/jquery-2.2.4.js'></script><!--JQUERYPLUGIN--> 
I also got an error message (which I can't find now) complaining about a < (or maybe >)

-- BruceWestbury - 27 Oct 2019

There's clearly problems with those lines. The first and third script tags (with the "id=... part") are not closed. Make sure you edit the topic with the ADDTOZONE macro which you copied from the other support topic and make sure that the script tags look like what I had in that topic. There was possibly an error in the way it was copy-and-pasted (perhaps from pasting within wysiwyg editor). When working with that kind of code, it's generally better to switch to non-wysiwyg editor.

BTW, you need to add <verbatim> tags around your script tags if you want them to display properly within Foswiki topic. Your script tags were messing up this topic and I added the verbatim tags.

Also, if you'd like to take this off line so we can deal with each issue that comes up, feel free to reach out to me on Foswiki's IRC channel tomorrow.

-- LynnwoodBrown - 27 Oct 2019
 

QuestionForm edit

Subject Missing functionality
Extension
Version Foswiki 2.1.6
Status Asked
Related Topics
Topic revision: r5 - 27 Oct 2019, LynnwoodBrown
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy