fix bug of language alias
This commit is contained in:
parent
4ffdd0ea92
commit
57554f36a9
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user