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

15 lines
214 B
JavaScript
Raw Normal View History

2023-09-25 15:58:56 +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);
});
}());