fix(build): don't show missing lang warnings with text specifiers in fences

pull/3005/head
Divyansh Singh 1 year ago
parent 9cac3b3ae8
commit aa40cecd48

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

Loading…
Cancel
Save