From 57554f36a9e516219fe30a1d820624e3b9377687 Mon Sep 17 00:00:00 2001 From: HPCesia Date: Thu, 24 Oct 2024 16:03:03 +0800 Subject: [PATCH] fix bug of language alias --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 14eb466..8d30ca9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -94,7 +94,7 @@ export async function init(hexo: Hexo) { themes: themes, }; if (config.additional.lang_alias && Object.keys(config.additional.lang_alias).length > 0) { - highlighter_options["langAliases"] = config.additional.lang_alias; + highlighter_options["langAlias"] = config.additional.lang_alias; } const highlighter = await createHighlighter(highlighter_options); const supportedLanguages = highlighter.getLoadedLanguages().reduce(