forked from Shinonome/dots-hyprland
ai chat: latex rendering
This commit is contained in:
@@ -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, '\\\\');
|
||||
}
|
||||
Reference in New Issue
Block a user