mathquill / mathquill

Easily type math in your webapp
http://mathquill.com
Mozilla Public License 2.0
2.61k stars 687 forks source link

Storing StaticMath objects in a const variable causes a silent fail. #1032

Open MinekPo1 opened 8 months ago

MinekPo1 commented 8 months ago

Not really sure what to say, but stuff breaks.

Example code (from radian628/11ty-desmos):

for (const e of document.getElementsByClassName("eleventy-desmos-mq-container")) {  
  const staticMath = Desmos.MathQuill.StaticMath(e);
  staticMath.latex(e.dataset.latex);
  // ...
}

In that case, the main issue is the elements not being copy-able.

See radian628/11ty-desmos#1