diff --git a/src/onenote/one/section.ts b/src/onenote/one/section.ts index c9d8b7e..b5186e7 100644 --- a/src/onenote/one/section.ts +++ b/src/onenote/one/section.ts @@ -188,8 +188,9 @@ function parsePage(context: OneContext, space: ObjectSpace): PageWithTextDto { const bodyParagraphs: string[] = []; for (const contentId of contentIds) { - bodyParagraphs.push( - ...extractGraphTextSafely(context, space, contentId, 'page content') + appendItems( + bodyParagraphs, + extractGraphTextSafely(context, space, contentId, 'page content') ); } let text = bodyParagraphs