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