[ANN] .mlx syntax dialect

The children of JSX elements are OCaml expressions, so you’d have to use a string:

<body>
  "content"
</body>

The grammar extension is intentionally pretty minimal to easy the maintenance. So it’s not trying to follow HTML very closely.

6 Likes