response
[ikiwiki] / doc / todo / Add_nicer_math_formatting.mdwn
1 It would be nice to add nicer math formatting.  I currently use the
2 [[plugins/teximg]] plugin, but I wonder if
3 [jsMath](http://www.math.union.edu/~dpvc/jsMath/) wouldn't be a better option.
4
5 [[Will]]
6
7 > I've looked at jsmath (which is nicely packaged in Debian), and 
8 > I agree that this is nicer than TeX images. That text-mode browsers
9 > get to see LaTeX as a fallback is actually a nice feature (better
10 > than nothing, right? :) That browsers w/o javascript will not be able to
11 > see the math either is probably ok.
12
13 > A plugin would probably be a pretty trivial thing to write.
14 > It just needs to include the javascript files,
15 > and slap a `<div class="math"> avound the user's code`, then 
16 > call `jsMath.Process(document);` at the end of the page.
17
18 > My only concern is security: Has jsMath's parser been written 
19 > to be safe when processing untrusted input? Could a user abuse the 
20 > parser to cause it to emit/run arbitrary javascript code?
21 > I've posted a question about this to its forum:  --[[Joey]] 
22 > <https://sourceforge.net/projects/jsmath/forums/forum/592273/topic/3831574> 
23
24 [[!tag wishlist]]