I am trying to render Razor components to the string following example here https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-components-outside-of-aspnetcore?view=aspnetcore-8.0
Unfortunately it seems like expressions evaluated to IHtmlContent are not rendered correctly and IHtmlContent.WriteTo is not called. Is IHtmlContent not supported for this scenario?