fix copilot ui code-block recognition

This commit is contained in:
Ramnique Singh 2025-08-12 16:00:47 +05:30
parent ade96aee13
commit fcfe5593b4

View file

@ -9,7 +9,7 @@ const copilotCodeMarker = "copilot_change\n";
function parseMarkdown(markdown: string): Block[] {
// Split on triple backticks but keep the delimiters
// This gives us the raw content between and including delimiters
const parts = markdown.split("```");
const parts = markdown.split("\n```");
const blocks: Block[] = [];
for (const part of parts) {