Astro's compiler renders <selectedcontent></selectedcontent> without
its closing tag, treating it as a void element. That broke the
post-build `prettier --parser html` pass on preview/dist output
(stray </span> the parser doesn't expect). Render it through
set:html so the closing tag survives into the emitted markup.