whalogen is a library for typsetting chemical formulae with Typst, inspired by mhchem.
GitHub repository: https://github.com/schang412/typst-whalogen
#import "@preview/whalogen:0.2.0": ce
$ #ce("HCl + H2O -> H3O+ + Cl-") $
See the manual for more details and examples.