add auto refresh

This commit is contained in:
C4illin 2024-05-25 02:33:24 +02:00
parent d5628dcfab
commit dcf360b7d2
9 changed files with 164 additions and 29 deletions

View file

@ -6,6 +6,8 @@ export const normalizeFiletype = (filetype: string): string => {
return "jpeg";
case "htm":
return "html";
case "tex":
return "latex";
default:
return lowercaseFiletype;
}
@ -17,6 +19,8 @@ export const normalizeOutputFiletype = (filetype: string): string => {
switch (lowercaseFiletype) {
case "jpeg":
return "jpg";
case "latex":
return "tex";
default:
return lowercaseFiletype;
}