// add a WordML content

import { CreateDocx } from "../../../build";
import * as fs from "fs";

const docx = new CreateDocx();

docx.addText("Add a paragraph by inserting a chunk of WordML code:");
docx.addWordMl(
    "<w:p><w:r><w:t>A very simple paragraph with only text.</w:t></w:r></w:p>"
);
docx.addText(
    "Beware that this is not, in general, a recommendable practice unless you are truly familiar with the OOXML standard"
);

docx.save().then(contents => {
    fs.writeFileSync("addWordMl_1.docx", Buffer.from(contents));
});
