diff --git a/demo/demo28.ts b/demo/demo28.ts index 80b6c7fcff..85a22b0328 100644 --- a/demo/demo28.ts +++ b/demo/demo28.ts @@ -25,7 +25,6 @@ props.headingStyleRange = "1-5"; props.stylesWithLevels = [new StyleLevel("MySpectacularStyle",1)] const toc = new TableOfContents("Summary", props); -// A TableOfContents must be added via File class. doc.addTableOfContents(toc); doc.addParagraph(new Paragraph("Header #1").heading1().pageBreakBefore()); diff --git a/docs/usage/table-of-contents.md b/docs/usage/table-of-contents.md index 7a027ad44c..c664924f96 100644 --- a/docs/usage/table-of-contents.md +++ b/docs/usage/table-of-contents.md @@ -44,7 +44,6 @@ props.headingStyleRange = "1-5"; props.stylesWithLevels = [new StyleLevel("MySpectacularStyle",1)] const toc = new TableOfContents("Summary", props); -// A TableOfContents must be added via File class. doc.addTableOfContents(toc); doc.addParagraph(new Paragraph("Header #1").heading1().pageBreakBefore());