mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-16 14:45:02 +00:00
10 lines
209 B
TypeScript
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);
|
|
};
|
|
},
|
|
});
|