We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a8844 commit dcb8450Copy full SHA for dcb8450
src/node/markdown/plugins/highlight.ts
@@ -120,7 +120,7 @@ export async function highlight(
120
const langLoaded = highlighter.getLoadedLanguages().includes(lang)
121
if (!langLoaded && !isSpecialLang(lang)) {
122
const resolvedLang = resolveLangSync(lang)
123
- if (!resolvedLang) {
+ if (!resolvedLang.length) {
124
logger.warn(
125
c.yellow(
126
`\nThe language '${lang}' is not loaded, falling back to '${
0 commit comments