summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2016-11-07 21:27:58 +0800
committerWu Cheng-Han2016-11-07 21:27:58 +0800
commit793aef0e2e949ca542f7570a82823af20cb34ace (patch)
treedbe0b924c7746c774c5a30b4d499e54f17b9596e
parent8c5a5a0712bfd087204a44648a6114e089242c54 (diff)
Fix syntax highlighting not apply correctly in slides
Diffstat (limited to '')
-rw-r--r--public/js/extra.js1
-rw-r--r--public/js/index.js2
-rw-r--r--public/js/pretty.js2
-rw-r--r--public/views/slide.ejs6
4 files changed, 7 insertions, 4 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');
diff --git a/public/views/slide.ejs b/public/views/slide.ejs
index 2cc79be0..0570b5ff 100644
--- a/public/views/slide.ejs
+++ b/public/views/slide.ejs
@@ -30,6 +30,9 @@
<link rel="stylesheet" href="<%- url %>/vendor/reveal.js/css/reveal.css">
<link rel="stylesheet" href="<%- url %>/vendor/reveal.js/css/theme/black.css" id="theme">
+ <!-- For syntax highlighting -->
+ <link rel="stylesheet" href="<%- url %>/vendor/reveal.js/lib/css/zenburn.css">
+
<link rel="stylesheet" href='<%- url %>/css/github-extract.css'>
<link rel="stylesheet" href='<%- url %>/css/gist.css'>
<link rel="stylesheet" href="<%- url %>/css/mermaid.css">
@@ -37,9 +40,6 @@
<link rel="stylesheet" href='<%- url %>/vendor/emojify.js/dist/css/basic/emojify.min.css'>
<%- include build/slide-header %>
-
- <!-- For syntax highlighting -->
- <link rel="stylesheet" href="<%- url %>/vendor/reveal.js/lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>