Remove prism warning when no language is provided (#1703)
* Remove prism warning when no language is provided * Add the plaintext language instead
This commit is contained in:
parent
cb733cf689
commit
eb7c63b2d2
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue