hastscript is a way to create 'HTML trees' - then you can translate that tree into HTML using hast-util-to-html. It's pretty neat and straightforward to use in Val Town because it supports ESM exports.
Migrated from folder: Modules/hastscriptExample