Skip to content

Commit ff764d9

Browse files
committed
Update website symbol replacement to use markdown separators instead of code blocks
- when placing website text, don't use markdown code block, but separators "---" └── apps └── editor └── src ├── utils │ └── files-collector.ts └── views └── prompt └── backend ├── message-handlers │ └── handle-autofill.ts └── utils └── symbols ├── fragment │ └── replace-fragment-symbol.ts ├── git │ └── replace-git-symbols.ts ├── image │ └── replace-image-symbol.ts ├── pasted-text │ └── replace-pasted-text-symbol.ts ├── replace-symbols.ts ├── saved-context │ └── replace-saved-context-symbol.ts ├── selection │ └── replace-selection-symbol.ts ├── skill │ └── replace-skill-symbol.ts └── website └── replace-website-symbol.ts
1 parent 1393655 commit ff764d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/editor/src/views/prompt/backend/utils/symbols/website/replace-website-symbol.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ export const replace_website_symbol = async (params: {
5050
const match = matches[i]
5151
const replacement = replacements[i]
5252

53-
result_string += params.instruction.slice(last_index, match.index)
53+
result_string += params.instruction.slice(last_index, match.index).trim()
5454

5555
if (replacement.success && replacement.content) {
56-
result_string += `\n\`\`\`\n${replacement.content}\n\`\`\`\n`
56+
result_string += `\n\n---\n\n${replacement.content}\n\n---\n\n`
5757
} else {
5858
result_string += match[0]
5959
}

0 commit comments

Comments
 (0)