fix(build): skip warning for `txt` language (#2109)

pull/2116/head
Alois Klink 2 years ago committed by GitHub
parent ccf3eea9f1
commit ac953ce8bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -97,7 +97,7 @@ export async function highlight(
if (lang) {
const langLoaded = highlighter.getLoadedLanguages().includes(lang as any)
if (!langLoaded && lang !== 'ansi') {
if (!langLoaded && lang !== 'ansi' && lang !== 'txt') {
logger.warn(
c.yellow(
`\nThe language '${lang}' is not loaded, falling back to '${

Loading…
Cancel
Save