From dcb8450f1166d7731c26a0eb5ec6d931bc283172 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 3 Nov 2024 14:30:31 +0530 Subject: [PATCH] fix: typo in missing language check --- src/node/markdown/plugins/highlight.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/markdown/plugins/highlight.ts b/src/node/markdown/plugins/highlight.ts index 4afe83ccb751..0ae9ed751ef3 100644 --- a/src/node/markdown/plugins/highlight.ts +++ b/src/node/markdown/plugins/highlight.ts @@ -120,7 +120,7 @@ export async function highlight( const langLoaded = highlighter.getLoadedLanguages().includes(lang) if (!langLoaded && !isSpecialLang(lang)) { const resolvedLang = resolveLangSync(lang) - if (!resolvedLang) { + if (!resolvedLang.length) { logger.warn( c.yellow( `\nThe language '${lang}' is not loaded, falling back to '${