Hello all,
I’ve written a plugin (a widget, $caltex), which takes as input math expressions, and shows as output a prettified version of the expression —using KaTeX— along with the result of evaluating that expression.
For example:

You can check its documentation and install it from CalTeX — a LaTeX-friendly calculator for tiddlywiki
If you are curious about the implementation, check GitHub - jerojasro/tw-caltex: a LaTeX-friendly calculator for tiddlywiki , and the JS package that I used for the heavy lifting: https://mathjs.org .