plugins/custom-class/prism-custom-class.js


Log

Author Commit Date CI Message
Michael Schmidt 4b55bd6a 2021-06-27T21:23:05 Made Match Braces and Custom Class compatible (#2947)
Michael Schmidt 158011e4 2021-04-18T15:55:05 ESLint: Added wrap-iife rule (#2867)
Michael Schmidt b03e7eb0 2021-04-17T22:30:39 ESLint: Added semi rule (#2836)
Michael Schmidt 96335642 2021-03-21T17:22:54 Plugins: Consistent Prism check (#2788)
Hari Gopal 543f04d7 2020-01-10T16:08:22 Custom Class: Fixed TypeError when mapper is undefined (#2167)
Michael Schmidt dab7998e 2019-11-16T10:40:14 Custom Class: New class adder feature (#2075) This adds a new `add` function to the Custom Class plugin which gives users the ability to easily add their own specific classes for existing tokens.
Michael Schmidt acceb3b5 2019-05-08T17:02:27 Custom class: Added mapper functions for language specific transformations (#1873) This adds support for mapper function to the `map` function, allowing for language-specific transformations.
Jimmy Miller 5400af9e 2017-07-20T15:31:14 Added a default for classMap. Fixes #1137. (#1157) When the classMap is accessed, it is undefined, causing this look up to fail. Defaulting it to an empty object provides the right logic. https://github.com/PrismJS/prism/blob/16ce4b336d625e13065bfc12ab6d13ac862d6f50/plugins/custom-class/prism-custom-class.js#L25
dvkndn e9355cc4 2016-08-15T02:43:09 add prefix feature for custom class plugin