-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed {{ and }} can't be in code problem
- Loading branch information
Showing
14 changed files
with
2,516 additions
and
3,691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
import Vue from 'vue' | ||
import VueHighlightJS from 'vue-highlightjs' | ||
import 'highlight.js/styles/github.css' | ||
|
||
Vue.use(VueHighlightJS); | ||
import hljs from 'highlight.js/lib/core'; | ||
import 'highlight.js/styles/stackoverflow-light.css' | ||
import go from 'highlight.js/lib/languages/go'; | ||
import javascript from 'highlight.js/lib/languages/javascript'; | ||
import hljsVuePlugin from "@highlightjs/vue-plugin"; | ||
|
||
hljs.registerLanguage('javascript', javascript); | ||
hljs.registerLanguage('go', go); | ||
|
||
Vue.use(hljsVuePlugin); | ||
|
||
(window.__goplaidVueComponentRegisters = | ||
window.__goplaidVueComponentRegisters || []).push(function (Vue) { | ||
Vue.component("BranCode", { | ||
name: "BranCode", | ||
props: ['language'], | ||
template: `<pre v-highlightjs><code :class="language"><slot name="sourcecode"></slot></code></pre>`, | ||
}); | ||
}); | ||
Vue.component("highlightjs", hljsVuePlugin.component); | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.