docs: public TemplateParserResult parseHtmlTemplate(String htmlTemplate,
        TemplateParserContext context, Elements elements, Messager messager, URI htmlTemplateUri) {
      this.context = context;
      this.elements = elements;
      this.messager = messager;
      this.logger = new TemplateParserLogger(context, messager);
      this.htmlTemplateUri = htmlTemplateUri;
  
      initJerichoConfig(this.logger);
  
      Source source = new Source(htmlTemplate);
      outputDocument = new OutputDocument(source);
  
      result = new TemplateParserResult(context);
      processImports(source);
      result.setScopedCss(processScopedCss(source));
      source.getChildElements().forEach(this::processElement);
  
      result.setProcessedTemplate(outputDocument.toString());
      return result;
    }