javascript - How does Wikipedia create images from <math> element? -
i've noticed that, using <math>
element on wikipedia, can input latex
code , have latex
result. code, however, not maintained on actual page after being edited; somehow saved image element (meaningful?) source (e.g. this picture/equation). example given's source .../math/a/9/7/a97cd92ab2cdf4de6ea533805627f7f3.png
.
i wondering if there way can manipulate (i.e. create script interpret user's latex
input , convert source), or if use whatever code/process wikipedia uses achieve this. source appears in base 16 (hexadecimal)--does have sort of meaning?
the main question i'm asking is: how can use wikipedia's latex
interpreter advantage? trying use in google sites, not allow native javascript executed.
wikipedia, afaik, uses tex render image serverside, when submit page. hex appears hash, of original content.
use mathjax (heavy) or katex (light) render latex on clientside html. if want render serverside (to image), want use tex itself.
i never used google sites, , don't know restrictions.
Comments
Post a Comment