diff options
author | Wu Cheng-Han | 2016-11-07 21:27:58 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-11-07 21:27:58 +0800 |
commit | 793aef0e2e949ca542f7570a82823af20cb34ace (patch) | |
tree | dbe0b924c7746c774c5a30b4d499e54f17b9596e /public/js | |
parent | 8c5a5a0712bfd087204a44648a6114e089242c54 (diff) |
Fix syntax highlighting not apply correctly in slides
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/extra.js | 1 | ||||
-rw-r--r-- | public/js/index.js | 2 | ||||
-rw-r--r-- | public/js/pretty.js | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index 81dd4a28..05d00780 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -1,5 +1,4 @@ require('prismjs/themes/prism.css'); -require('highlight.js/styles/github-gist.css'); var Prism = require('prismjs'); require('prismjs/components/prism-wiki'); diff --git a/public/js/index.js b/public/js/index.js index 9c77ba8d..35f63839 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -6,6 +6,8 @@ require('../css/extra.css'); require('../css/slide-preview.css'); require('../css/site.css'); +require('highlight.js/styles/github-gist.css'); + var toMarkdown = require('to-markdown'); var saveAs = require('file-saver').saveAs; diff --git a/public/js/pretty.js b/public/js/pretty.js index f7d31902..b5c5ba8a 100644 --- a/public/js/pretty.js +++ b/public/js/pretty.js @@ -2,6 +2,8 @@ require('../css/extra.css'); require('../css/slide-preview.css'); require('../css/site.css'); +require('highlight.js/styles/github-gist.css'); + /* other vendors plugin */ var S = require('string'); |