For LaTeX, there is the website https://www.unicodeit.net/, which converts LaTeX math expressions into easily-copy-pastable plaintext. This is tremendously useful when corresponding with people about mathy stuff via email or plaintext chat.
Does anyone know of an eqiuvalent for typst syntax? For example, one would input {x^2 | x in RR} and get out “{x² | x ∈ ℝ}”. Google turns up nothing useful, except for a mac-app that compiles typst locally to PDF (Typstit: Drag Typst formulas into Keynote and other apps).
If this does not exist yet, I would consider building this, likely by forking Unicodeit (their license is permissive) and swapping out their symbol table with one that I somehow generate from the typst compiler. (Alternatively, I could try using typst’s HTML export and converting that, but that seems more fragile, cursed, and seems to be more work).