diff --git a/example/app.js b/example/app.js index 1d29354..f8f340a 100644 --- a/example/app.js +++ b/example/app.js @@ -1,11 +1,6 @@ /* eslint-disable global-require */ /* eslint-disable import/no-extraneous-dependencies */ import fs from 'fs'; -import hljs from 'highlight.js/lib/highlight'; -import javascript from 'highlight.js/lib/languages/javascript'; -import xml from 'highlight.js/lib/languages/xml'; -import 'highlight.js/styles/atom-one-light.css'; - import Container from './helper/container.vue'; import Card from './helper/card.vue'; import Basic from './demo/Basic.vue'; @@ -23,9 +18,6 @@ import Disabled from './demo/Disabled.vue'; import docEn from './en.md'; import docZhCN from './zh-cn.md'; -hljs.registerLanguage('javascript', javascript); -hljs.registerLanguage('xml', xml); - const components = [ { id: 'Basic', @@ -133,7 +125,6 @@ const App = { }; }, mounted() { - hljs.initHighlighting(); window.onhashchange = () => { this.currentId = this.getCurrentId(); }; diff --git a/example/dev.html b/example/dev.html index 7396800..d8a17eb 100644 --- a/example/dev.html +++ b/example/dev.html @@ -6,6 +6,7 @@
- {{code}}
-
+