Skip to content

Commit

Permalink
fix(build): don't show missing lang warnings with text specifiers in …
Browse files Browse the repository at this point in the history
…fences
  • Loading branch information
brc-dd committed Sep 22, 2023
1 parent 9cac3b3 commit aa40cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/markdown/plugins/highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export async function highlight(

if (lang) {
const langLoaded = highlighter.getLoadedLanguages().includes(lang as any)
if (!langLoaded && lang !== 'ansi' && lang !== 'txt') {
if (!langLoaded && !['ansi', 'plaintext', 'txt', 'text'].includes(lang)) {
logger.warn(
c.yellow(
`\nThe language '${lang}' is not loaded, falling back to '${
Expand Down

0 comments on commit aa40cec

Please sign in to comment.