ai chat: latex rendering

This commit is contained in:
end-4
2025-05-09 01:07:31 +02:00
parent e56a3a591b
commit c3323da840
6 changed files with 240 additions and 57 deletions
@@ -33,3 +33,11 @@ function splitMarkdownBlocks(markdown) {
}
return result;
}
function trimFileProtocol(str) {
return str.startsWith("file://") ? str.slice(7) : str;
}
function escapeBackslashes(str) {
return str.replace(/\\/g, '\\\\');
}