ai chat: better code snippets

This commit is contained in:
end-4
2025-05-07 19:13:28 +02:00
parent e83dfdc5d8
commit a765a190cd
3 changed files with 135 additions and 57 deletions
@@ -32,4 +32,8 @@ function splitMarkdownBlocks(markdown) {
result.push({ type: "text", content: markdown.slice(lastIndex) });
}
return result;
}
function unEscapeBackslashes(str) {
return str.replace(/\\\\/g, '\\');
}