You can see below the API reference of this module.
Add several widely used style codes
Processes the current chunk of text.
- String
text
: The input text. - Object
options
: An object containing the following fields: json
(Boolean): Iftrue
, the result will be an object.use_classes
(Boolean): Iftrue
, HTML classes will be appended to the HTML output.- Boolean
markup
: If false, the colors will not be parsed.
- Object|String The result (object if
json
is wanted back or string otherwise).