hexo/node_modules/prismjs/plugins/highlight-keywords/prism-highlight-keywords.js

15 lines
228 B
JavaScript

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