From 97fc42268ebfc77dbd8bd063ba9b0446d31924ad Mon Sep 17 00:00:00 2001 From: Sha Zhou Date: Wed, 30 Apr 2025 18:31:56 +0800 Subject: [PATCH] fix reference position issue --- src/tools/build-ref.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/build-ref.ts b/src/tools/build-ref.ts index f1acdd6..e84e441 100644 --- a/src/tools/build-ref.ts +++ b/src/tools/build-ref.ts @@ -322,7 +322,7 @@ function buildFinalResult( // Look ahead to check if there's a list item coming next const textAfterInsert = modifiedAnswer.substring(insertPosition); - const nextListItemMatch = textAfterInsert.match(/^\s*\n\s*\*/); + const nextListItemMatch = textAfterInsert.match(/^\s*\n\s*\*\s+/); // If we're at a position where the next content is a list item, // we need to adjust WHERE we place the footnote