feat: LaTeX formatting (#3242)

* initial

* initial

* restored package-lock.json

* restored comment

* One line

* prettier

* do not throw on error

* escape backslashes in system notification

* better prompt

* reduce prompt size

* prettier

---------

Co-authored-by: canvrno <kevin@cline.bot>
This commit is contained in:
Frostbourne
2025-05-02 19:46:59 +05:30
committed by GitHub
co-authored by canvrno
parent 61d2f42955
commit eb6e4818d3
10 changed files with 612 additions and 1035 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ export async function showSystemNotification(options: NotificationOptions): Prom
const escapedOptions = {
...options,
title: title.replace(/"/g, '\\"'),
message: message.replace(/"/g, '\\"'),
message: message.replace(/\\/g, "\\\\").replace(/"/g, '\\"'),
subtitle: options.subtitle?.replace(/"/g, '\\"') || "",
}