(math)
| 19 | |
| 20 | // Render Math with Katex |
| 21 | function renderMath(math) { |
| 22 | // TODO: definitely add error handling. |
| 23 | return katex.renderToString(math, { |
| 24 | macros: { '\\f': '#1f(#2)' }, |
| 25 | }); |
| 26 | } |
| 27 | |
| 28 | function runPython(pyvm, code, error) { |
| 29 | try { |