Longform exports full documents or HTML fragments, allowing a parent program to piece together the fragments into its own markup. And directives can be used to extend the language.
Take a look at https://longform.occultist.dev for the working spec. If you want to test it out, I've built a really basic static site generator at https://stat.occultist.dev.