(aliasOrLanguage: string)
| 45 | } |
| 46 | |
| 47 | function registeredLang(aliasOrLanguage: string) { |
| 48 | const allSupportLang = Object.keys(Prism.languages).filter( |
| 49 | (id) => typeof Prism.languages[id] === 'object', |
| 50 | ); |
| 51 | return Boolean(allSupportLang.find((x) => x === aliasOrLanguage)); |
| 52 | } |
| 53 | |
| 54 | function getDecorations({ |
| 55 | doc, |