Renders OCaml:

open Dream_html
open HTML
html [lang "en"] [
  head [] [
    title [] "My page";
  ];
  body [] [
    h1 [] [txt "My text"];
  ];
]

To HTML/SVG/MathML (try it):

Install & use

See the readme.