katoikia-app/web-ui/web-react/node_modules/prismjs/plugins/custom-class/prism-custom-class.min.js

1 line
367 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
!function(){if("undefined"!=typeof self&&self.Prism||"undefined"!=typeof global&&global.Prism){var s={classMap:{}};Prism.plugins.customClass={map:function(i){s.classMap=i},prefix:function(i){s.prefixString=i}},Prism.hooks.add("wrap",function(i){(s.classMap||s.prefixString)&&(i.classes=i.classes.map(function(i){return(s.prefixString||"")+(s.classMap[i]||i)}))})}}();