mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-19 03:48:18 -07:00
18 lines
270 B
JavaScript
18 lines
270 B
JavaScript
|
(function(){
|
||
|
|
||
|
if (
|
||
|
typeof self !== 'undefined' && !self.Prism ||
|
||
|
typeof global !== 'undefined' && !global.Prism
|
||
|
) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
Prism.hooks.add('wrap', function(env) {
|
||
|
if (env.type !== "keyword") {
|
||
|
return;
|
||
|
}
|
||
|
env.classes.push('keyword-' + env.content);
|
||
|
});
|
||
|
|
||
|
})();
|