sibanu_web/public/assets/vendor/prismjs/plugins/remove-initial-line-feed/prism-remove-initial-line-feed.min.js

1 line
319 B
JavaScript
Raw Normal View History

2022-08-20 13:21:23 +07:00
"undefined"!=typeof self&&self.Prism&&self.document&&Prism.hooks.add("before-sanity-check",function(e){if(e.code){var s=e.element.parentNode,n=/(?:^|\s)keep-initial-line-feed(?:\s|$)/;!s||"pre"!==s.nodeName.toLowerCase()||n.test(s.className)||n.test(e.element.className)||(e.code=e.code.replace(/^(?:\r?\n|\r)/,""))}});