From d369c0a74c35530e0d7b52b67c8a31de62b70d01 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Tue, 12 Jul 2022 17:29:09 +0100 Subject: [PATCH] Fix footnotes demo --- demo/17-footnotes.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/demo/17-footnotes.ts b/demo/17-footnotes.ts index 4f9d403ebd..459cf2117c 100644 --- a/demo/17-footnotes.ts +++ b/demo/17-footnotes.ts @@ -18,10 +18,15 @@ const doc = new Document({ new Paragraph({ children: [ new TextRun({ - children: ["Hello", new FootnoteReferenceRun(1)], + children: ["Hello"], }), + new FootnoteReferenceRun(1), new TextRun({ - children: [" World!", new FootnoteReferenceRun(2)], + children: [" World!"], + }), + new FootnoteReferenceRun(2), + new TextRun({ + children: [" GitHub!"], }), ], }), @@ -35,15 +40,17 @@ const doc = new Document({ new Paragraph({ children: [ new TextRun({ - children: ["Hello", new FootnoteReferenceRun(4)], + children: ["Hello"], }), + new FootnoteReferenceRun(4), new TextRun({ - children: [" World!", new FootnoteReferenceRun(5)], + children: [" World!"], }), + new FootnoteReferenceRun(5), ], }), new Paragraph({ - children: [new TextRun("Hello World"), new FootnoteReferenceRun(6)], + children: [new TextRun("Hello World Again"), new FootnoteReferenceRun(6)], }), ], },