Locally add prismjs

This commit is contained in:
Aroy-Art 2024-11-26 21:16:11 +01:00
parent 35af792c6a
commit 6aa044cf9b
Signed by: Aroy
GPG key ID: 583642324A1D2070
701 changed files with 35787 additions and 0 deletions

View file

@ -0,0 +1,14 @@
(function () {
if (typeof Prism === 'undefined') {
return;
}
Prism.hooks.add('wrap', function (env) {
if (env.type !== 'keyword') {
return;
}
env.classes.push('keyword-' + env.content);
});
}());

View file

@ -0,0 +1 @@
"undefined"!=typeof Prism&&Prism.hooks.add("wrap",(function(e){"keyword"===e.type&&e.classes.push("keyword-"+e.content)}));