Locally add prismjs
This commit is contained in:
parent
35af792c6a
commit
6aa044cf9b
701 changed files with 35787 additions and 0 deletions
14
node_modules/prismjs/plugins/highlight-keywords/prism-highlight-keywords.js
generated
vendored
Normal file
14
node_modules/prismjs/plugins/highlight-keywords/prism-highlight-keywords.js
generated
vendored
Normal 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);
|
||||
});
|
||||
|
||||
}());
|
1
node_modules/prismjs/plugins/highlight-keywords/prism-highlight-keywords.min.js
generated
vendored
Normal file
1
node_modules/prismjs/plugins/highlight-keywords/prism-highlight-keywords.min.js
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
"undefined"!=typeof Prism&&Prism.hooks.add("wrap",(function(e){"keyword"===e.type&&e.classes.push("keyword-"+e.content)}));
|
Loading…
Add table
Add a link
Reference in a new issue