Skip to content

Commit 6ae612d

Browse files
committed
feat: treat plain as plain text, close #24
1 parent 589bf02 commit 6ae612d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shikiji/src/core/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { MaybeArray } from '../types'
22

33
export function isPlaintext(lang: string | null | undefined) {
4-
return !lang || ['plaintext', 'txt', 'text'].includes(lang)
4+
return !lang || ['plaintext', 'txt', 'text', 'plain'].includes(lang)
55
}
66

77
export function toArray<T>(x: MaybeArray<T>): T[] {

0 commit comments

Comments
 (0)