Skip to content

Commit e70b385

Browse files
committed
chore: use callback replacer for highlighted code blocks
1 parent 2ff85a9 commit e70b385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/docs/text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export async function renderMarkdown(text: string, symbolLookup: SymbolLookup):
136136
)
137137

138138
highlightedCodeBlocks.forEach((highlighted, i) => {
139-
result = result.replace(`__CODE_BLOCK_${i}__`, highlighted)
139+
result = result.replace(`__CODE_BLOCK_${i}__`, () => highlighted)
140140
})
141141

142142
return result

0 commit comments

Comments
 (0)