diff --git a/src/hooks/useMarkdown.hook.ts b/src/hooks/useMarkdown.hook.ts index 0eca1d4..a7f3402 100644 --- a/src/hooks/useMarkdown.hook.ts +++ b/src/hooks/useMarkdown.hook.ts @@ -194,6 +194,7 @@ export const useShikiji = (): Promise => { "html", "css", "json", + "rust", { ...alloyGrammar, name: "alloy", diff --git a/src/utils/fileLanguage.ts b/src/utils/fileLanguage.ts index 8d803d8..72e5149 100644 --- a/src/utils/fileLanguage.ts +++ b/src/utils/fileLanguage.ts @@ -15,6 +15,7 @@ const EXT_TO_LANG: Record = { scss: "css", json: "json", jsonc: "json", + rs: "rust", als: "alloy" }