export the html_document_base function