{"record":{"id":"075ec40c58d668c6","repo":"gatsbyjs/gatsby","slug":"code-block-or-inline-code-language-not-specified-i","errorCode":null,"errorMessage":"code block or inline code language not specified in markdown. applying generic code block","messagePattern":"code block or inline code language not specified in markdown\\. applying generic code block","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-remark-prismjs/src/highlight-code.js","lineNumber":39,"sourceCode":"      loadPrismLanguage(language)\n    } catch (e) {\n      // Language wasn't loaded so let's bail.\n      let message = null\n      switch (language) {\n        case `none`:\n          return code // Don't escape if set to none.\n        case `text`:\n          message = noInlineHighlight\n            ? `code block language not specified in markdown.`\n            : `code block or inline code language not specified in markdown.`\n          break\n        default:\n          message = `unable to find prism language '${language}' for highlighting.`\n      }\n\n      const lang = language.toLowerCase()\n      if (!unsupportedLanguages.has(lang)) {\n        console.warn(message, `applying generic code block`)\n        unsupportedLanguages.add(lang)\n      }\n      return escapeHTML(code, additionalEscapeCharacters)\n    }\n  }\n\n  // (Try to) load diffLanguage on demand.\n  if (diffLanguage && !Prism.languages[diffLanguage]) {\n    try {\n      loadPrismLanguage(diffLanguage)\n    } catch (e) {\n      const message = `unable to find prism language '${diffLanguage}' for highlighting.`\n\n      const lang = diffLanguage.toLowerCase()\n      if (!unsupportedLanguages.has(lang)) {\n        console.warn(message, `applying generic code block`)\n        unsupportedLanguages.add(lang)\n      }","sourceCodeStart":21,"sourceCodeEnd":57,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-remark-prismjs/src/highlight-code.js#L21-L57","documentation":"Prism fallback warning during code highlighting: the code block's language resolved to 'text' with inline code also present (noInlineHighlight false), meaning no language was specified in markdown. Prism cannot apply syntax highlighting, so the code is escaped and rendered as a generic code block instead.","triggerScenarios":"Thrown at packages/gatsby-remark-prismjs/src/highlight-code.js:39 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add a language to the code fence info string, e.g. ```js"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}