Skip to content

Commit

Permalink
fix(docs): Fallback code language to markup instead of none
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Nov 2, 2021
1 parent 4e6131c commit 0efaf9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/documentation/src/components/CodeBlock/utils.ts
Expand Up @@ -11,7 +11,7 @@ export const getLanguage: GetCodeLanguage = (lang, _rawCode) => {
// if the Prism doesn't support the language, default to nothing instead
// of crashing
if (!languages[lang]) {
return "none";
return "markup";
}

return lang;
Expand Down

1 comment on commit 0efaf9b

@vercel
Copy link

@vercel vercel bot commented on 0efaf9b Nov 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.