Theme updated

This commit is contained in:
Bahadır Sofuoğlu
2022-11-06 15:02:12 +03:00
parent 357fd44630
commit 0e5c4072e1
101 changed files with 217635 additions and 54 deletions

View File

@@ -0,0 +1,16 @@
import Prism from 'prismjs';
const CodeHighlight = {
beforeMount (el, binding) {
const modifiers = binding.modifiers;
const value = binding.value;
if (modifiers.script || value === 'script') el.className = 'language-javascript';
else if (modifiers.css || value === 'css') el.className = 'language-css';
else el.className = 'language-markup';
Prism.highlightElement(el.children[0]);
}
};
export default CodeHighlight;