Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The new typings define higligth as follow: ```typescript /* * @param text A string with the code to be highlighted. * @param grammar An object containing the tokens to use. * * Usually a language definition like `Prism.languages.markup`. * @param language The name of the language definition passed to `grammar`. * @returns The highlighted HTML. * * @example * Prism.highlight('var foo = true;', Prism.languages.js, 'js'); */ export function highlight( text: string, grammar: Grammar, language: string ): string; ```
- Loading branch information