latex - get html output from mathquill in javascript function -


i use mathquill html ouput in string var, in javascript code.

something

var latexcode = 'x^2'; var htmltext = mathquill(.... 

thanks,

mathieu

why need rendered latex in javascript? think should try this.

$('<span>x^2</span>').appendto('body').mathquill() or .mathquill('editable') 

or if want comparison

$('<span>x^{-1}</span>').mathquill().mathquill('latex') === 'x^{-1}' 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -