mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-16 22:55:03 +00:00
respect code-lang=plain
This commit is contained in:
parent
68211168d3
commit
bb02fd079c
2 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,8 @@ import hljs from "highlight.js/lib/core";
|
|||
|
||||
Vue.directive("highlightjs", {
|
||||
bind(el, binding) {
|
||||
hljs.highlightElement(el);
|
||||
if(!el.classList.contains("plain")) {
|
||||
hljs.highlightElement(el);
|
||||
};
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue