We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
plain
1 parent 589bf02 commit 6ae612dCopy full SHA for 6ae612d
packages/shikiji/src/core/utils.ts
@@ -1,7 +1,7 @@
1
import type { MaybeArray } from '../types'
2
3
export function isPlaintext(lang: string | null | undefined) {
4
- return !lang || ['plaintext', 'txt', 'text'].includes(lang)
+ return !lang || ['plaintext', 'txt', 'text', 'plain'].includes(lang)
5
}
6
7
export function toArray<T>(x: MaybeArray<T>): T[] {
0 commit comments