disi Wrote:Still looking through, how I might tripper a script to replace everything between $$ and $$...
You don't need a script to replace anything, if you are using the Javascript version.
However, I played around a bit with both methods of getting nice math formulas and whipped up the attached small plugin. Just change the variable at the top to use one of the methods:
- $math_mode = 1: Images
- $math_mode = 2: Javascript
- $math_mode = 3: Javascript, but if Javascript is switched off, images are shown.
In any case you enter formulas between $$ ... $$.