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

10 lines
210 B
TypeScript

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