feat: 消除警告

This commit is contained in:
ChenZhaoYu
2023-02-23 11:54:57 +08:00
parent 25c725c6e8
commit 2d00a9bc35

View File

@@ -2,6 +2,8 @@ import type { App, Directive } from 'vue'
import hljs from 'highlight.js'
import includeCode from '@/utils/functions/includeCode'
hljs.configure({ ignoreUnescapedHTML: true })
function highlightCode(el: HTMLElement) {
if (includeCode(el.textContent))
hljs.highlightBlock(el)