3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 14:45:02 +00:00
zeppelin/dashboard/src/directives/highlightjs.ts
2024-06-02 18:21:07 +02:00

10 lines
209 B
TypeScript

import Vue from "vue";
import hljs from "highlight.js/lib/core";
Vue.directive("highlightjs", {
bind(el, binding) {
if(!el.classList.contains("plain")) {
hljs.highlightElement(el);
};
},
});