prism-react-renderer
Advanced tools
Comparing version 2.0.3 to 2.0.4
import * as react from 'react'; | ||
import { CSSProperties } from 'react'; | ||
import { Token as Token$1 } from 'prismjs'; | ||
import * as prismjs from 'prismjs'; | ||
export { prismjs as Prism }; | ||
import Prism__default from 'prismjs'; | ||
import * as Prism from 'prismjs'; | ||
export { Prism }; | ||
type Language = string; | ||
type PrismGrammar = Record<string, unknown>; | ||
type LanguagesDict = Record<Language, PrismGrammar>; | ||
type PrismLib = { | ||
languages: LanguagesDict; | ||
tokenize: (code: string, grammar: PrismGrammar) => Array<Token$1 | string>; | ||
highlight: (code: string, grammar: PrismGrammar, language: Language) => string; | ||
hooks: { | ||
run: (name: string, env: { | ||
code: string; | ||
grammar: PrismGrammar; | ||
language: Language; | ||
}) => void; | ||
}; | ||
}; | ||
type PrismLib = typeof Prism__default; | ||
type Token = { | ||
@@ -23,0 +10,0 @@ types: string[]; |
{ | ||
"name": "prism-react-renderer", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Renders highlighted Prism output using React", | ||
@@ -5,0 +5,0 @@ "sideEffects": true, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
680386
5998