For instance, a paragraph with the style name Heading 1 is converted to a h1 element. The contents of the text box are treated as a separate paragraph that appears after the paragraph containing the text box.īy default, Mammoth maps some common. The formatting of the table itself, such as borders, is currently ignored, but the formatting of the text is treated the same as in the rest of the document.īold, italics, superscript and subscript. The following features are currently supported: Mammoth works best if you only use styles to semantically mark up your document. docx and the structure of HTML, meaning that the conversion is unlikely to be perfect for more complicated documents. There’s a large mismatch between the structure used by. This allows you to paste from Word documents without the usual mess. For instance, Mammoth converts any paragraph with the style Heading1 to h1 elements, rather than attempting to exactly copy the styling (font, text size, colour, etc.) of the heading. Mammoth aims to produce simple and clean HTML by using semantic information in the document, and ignoring other details. docx documents, such as those created by Microsoft Word, Google Docs and LibreOffice, and convert them to HTML.
0 Comments
Leave a Reply. |