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


Log

Author Commit Date CI Message
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