mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-16 22:55:03 +00:00
fix(docs): hljs depcrecation and new directive
couldn't figure out how to get hljs-vue to work so this was just the easiest way to fix it
This commit is contained in:
parent
b28ca170ed
commit
9ee0378d4e
3 changed files with 11 additions and 2 deletions
8
dashboard/src/directives/highlightjs.ts
Normal file
8
dashboard/src/directives/highlightjs.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import Vue from "vue";
|
||||
import hljs from "highlight.js/lib/core";
|
||||
|
||||
Vue.directive("highlightjs", {
|
||||
bind(el, binding) {
|
||||
hljs.highlightElement(el)
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue