prismjs.tsx 301 B

12345678910111213
  1. import prismComponents from 'prismjs/components';
  2. const Prism = {
  3. manual: false,
  4. languages: Object.keys(prismComponents.languages).reduce(
  5. (acc, language) => ({...acc, [language]: {}}),
  6. {}
  7. ),
  8. tokenize: (code: string) => [code],
  9. highlightElement: () => {},
  10. };
  11. export default Prism;