Typst is great for web content as well (even though their HTML export functionality is still experimental). I've written blog posts on interaction nets in Typst [0] and I really like how the diagrams look.
[0]: https://ezb.io/thoughts/interaction_nets/lambda_calculus/202...