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