Skip to content

Commit adb0874

Browse files
committed
fix: md footnote
1 parent 63999ba commit adb0874

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/agent.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
buildMdFromAnswer,
3838
chooseK, fixCodeBlockIndentation,
3939
removeExtraLineBreaks,
40-
removeHTMLtags, repairMarkdownFootnotesSimple
40+
removeHTMLtags, repairMarkdownFootnotesOuter
4141
} from "./utils/text-tools";
4242
import {MAX_QUERIES_PER_STEP, MAX_REFLECT_PER_STEP, MAX_URLS_PER_STEP, Schemas} from "./utils/schemas";
4343
import {formatDateBasedOnType, formatDateRange} from "./utils/date-tools";
@@ -916,7 +916,7 @@ But unfortunately, you failed to solve the issue. You need to think out of the b
916916
(thisStep as AnswerAction).mdAnswer =
917917
fixBadURLMdLinks(
918918
fixCodeBlockIndentation(
919-
repairMarkdownFootnotesSimple(
919+
repairMarkdownFootnotesOuter(
920920
await fixMarkdown(
921921
buildMdFromAnswer((thisStep as AnswerAction)),
922922
allKnowledge,

src/utils/text-tools.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ ${formatReferences(references)}
159159
* A variant of the function that only takes a markdown string
160160
* It extracts existing footnote definitions and uses them as references
161161
*/
162-
export function repairMarkdownFootnotesSimple(markdownString: string): string {
162+
export function repairMarkdownFootnotesOuter(markdownString: string): string {
163163
// Remove outer code fence if it exists
164164
// First trim the string to handle any extra whitespace
165165
markdownString = markdownString.trim();

0 commit comments

Comments
 (0)