We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6821116 commit bb02fd0Copy full SHA for bb02fd0
dashboard/src/components/docs/CodeBlock.vue
@@ -1,5 +1,5 @@
1
<template>
2
- <pre class="codeblock" v-highlightjs><code :class="codeLang" v-trim-indents="trim"><slot></slot></code></pre>
+ <pre class="codeblock"><code :class="codeLang" v-trim-indents="trim" v-highlightjs><slot></slot></code></pre>
3
</template>
4
5
<script>
dashboard/src/directives/highlightjs.ts
@@ -3,6 +3,8 @@ import hljs from "highlight.js/lib/core";
Vue.directive("highlightjs", {
bind(el, binding) {
6
- hljs.highlightElement(el);
+ if(!el.classList.contains("plain")) {
7
+ hljs.highlightElement(el);
8
+ };
9
},
10
});
0 commit comments