mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
20 lines
327 B
JavaScript
20 lines
327 B
JavaScript
(function(){
|
|
|
|
if (
|
|
typeof self !== 'undefined' && !self.Prism ||
|
|
typeof global !== 'undefined' && !global.Prism
|
|
) {
|
|
return;
|
|
}
|
|
|
|
Prism.hooks.add('before-highlight', function(env) {
|
|
var tokens = env.grammar;
|
|
|
|
tokens.tab = /\t/g;
|
|
tokens.crlf = /\r\n/g;
|
|
tokens.lf = /\n/g;
|
|
tokens.cr = /\r/g;
|
|
tokens.space = / /g;
|
|
});
|
|
})();
|