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

15 lines
228 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
(function () {
if (typeof Prism === 'undefined') {
return;
}
Prism.hooks.add('wrap', function (env) {
if (env.type !== 'keyword') {
return;
}
env.classes.push('keyword-' + env.content);
});
}());