MCPcopy Index your code
hub / github.com/resend/react-email / registeredLang

Function registeredLang

packages/editor/src/extensions/prism-plugin.ts:47–52  ·  view source on GitHub ↗
(aliasOrLanguage: string)

Source from the content-addressed store, hash-verified

45}
46
47function 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
54function getDecorations({
55 doc,

Callers 1

getDecorationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected