diff --git a/packages/markdown/remark/src/remark-prism.ts b/packages/markdown/remark/src/remark-prism.ts index 9ac72ea0f..d8dd8d922 100644 --- a/packages/markdown/remark/src/remark-prism.ts +++ b/packages/markdown/remark/src/remark-prism.ts @@ -12,7 +12,7 @@ function runHighlighter(lang: string, code: string) { let classLanguage = `language-${lang}` if (lang == null) { - console.warn('Prism.astro: No language provided.'); + lang = 'plaintext'; } const ensureLoaded = (lang: string) => {