diff --git a/demo/11-declaritive-styles-2.ts b/demo/11-declaritive-styles-2.ts index 3dac550288..ddb25a5445 100644 --- a/demo/11-declaritive-styles-2.ts +++ b/demo/11-declaritive-styles-2.ts @@ -178,15 +178,17 @@ doc.addSection({ }), }, children: [ - new Paragraph( - new ImageRun({ - data: fs.readFileSync("./demo/images/pizza.gif"), - transformation: { - width: 100, - height: 100, - }, - }), - ), + new Paragraph({ + children: [ + new ImageRun({ + data: fs.readFileSync("./demo/images/pizza.gif"), + transformation: { + width: 100, + height: 100, + }, + }), + ], + }), new Paragraph({ text: "HEADING", heading: HeadingLevel.HEADING_1, @@ -225,28 +227,32 @@ doc.addSection({ style: "normalPara", }), table, - new Paragraph( - new ImageRun({ - data: fs.readFileSync("./demo/images/pizza.gif"), - transformation: { - width: 100, - height: 100, - }, - }), - ), + new Paragraph({ + children: [ + new ImageRun({ + data: fs.readFileSync("./demo/images/pizza.gif"), + transformation: { + width: 100, + height: 100, + }, + }), + ], + }), new Paragraph({ text: "Test", style: "normalPara2", }), - new Paragraph( - new ImageRun({ - data: fs.readFileSync("./demo/images/pizza.gif"), - transformation: { - width: 100, - height: 100, - }, - }), - ), + new Paragraph({ + children: [ + new ImageRun({ + data: fs.readFileSync("./demo/images/pizza.gif"), + transformation: { + width: 100, + height: 100, + }, + }), + ], + }), new Paragraph({ text: "Test 2", style: "normalPara2",