using katex.render() in panel crashes

using katex.render() in panel crashes

Hallo there,

I try to use katex equations within panels, but it dont work properly. How can I use katex inside panels.

Where should I call katex.render()....?

The code-example is attached..

Thanks in advance!
Bernd