fix: fix edit file tool render abnormal

This commit is contained in:
QiuYang Shen 2025-08-28 18:53:45 +08:00
parent 9c6d1d0b4c
commit 7b7c017d7a

View file

@ -17,7 +17,7 @@ export function EditFile(props: EditToolCallProps) {
return null;
}
const src = `\`\`\`${getMarkdownLanguageTagForFile(props.relativeFilePath)} ${props.relativeFilePath}${props.changes ? "\n" + props.changes + "\n" : ""}\`\`\``;
const src = `\`\`\`${getMarkdownLanguageTagForFile(props.relativeFilePath)} ${props.relativeFilePath}${props.changes ? "\n" + props.changes + "\n" : "\n"}\`\`\``;
return (
<StyledMarkdownPreview