diff --git a/src/directives/highlight.ts b/src/directives/highlight.ts index b4d2d18..ead6acf 100644 --- a/src/directives/highlight.ts +++ b/src/directives/highlight.ts @@ -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)