HTML for docx documents: htmlToContent turns HTML, such as a rich-text editor's, into paragraphs and tables, and
htmlToRuns into the content of a paragraph, which go in a document as any others do.
HTML comes with the docx package, from docx/html. Everything else, such as the document and its paragraphs,
comes from docx.
HTML for docx documents:
htmlToContentturns HTML, such as a rich-text editor's, into paragraphs and tables, andhtmlToRunsinto the content of a paragraph, which go in a document as any others do.HTML comes with the
docxpackage, fromdocx/html. Everything else, such as the document and its paragraphs, comes fromdocx.Example