08-27-周三_17-09-29
This commit is contained in:
17
node_modules/prismjs/plugins/highlight-keywords/prism-highlight-keywords.js
generated
vendored
Normal file
17
node_modules/prismjs/plugins/highlight-keywords/prism-highlight-keywords.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
(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);
|
||||
});
|
||||
|
||||
})();
|
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 self&&!self.Prism||"undefined"!=typeof global&&!global.Prism||Prism.hooks.add("wrap",function(e){"keyword"===e.type&&e.classes.push("keyword-"+e.content)});
|
Reference in New Issue
Block a user