From ae5776b9238c2983bec87dea98a7d69940949483 Mon Sep 17 00:00:00 2001 From: hebehh Date: Fri, 10 May 2024 18:11:30 +0800 Subject: [PATCH] if there's an introduction section make sure if comes under the introduction header --- src/app.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app.ts b/src/app.ts index eb5e27e..cae54a6 100644 --- a/src/app.ts +++ b/src/app.ts @@ -616,6 +616,13 @@ async function runWizard() { ); if (outlineResponse.success) { + const outline : Outline = outlineResponse.response; + outline.sections.forEach((section) => { + if (section.permalink === 'introduction' || section.permalink === 'Introduction' || section.permalink === 'summary') { + section.permalink = 'index' + } + + }) wizardState.generatedOutline = outlineResponse.response; } else { console.log(