Fix syntax highlighting not apply correctly in slides

This commit is contained in:
Wu Cheng-Han 2016-11-07 21:27:58 +08:00
parent 8c5a5a0712
commit 793aef0e2e
4 changed files with 7 additions and 4 deletions

View File

@ -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');

View File

@ -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;

View File

@ -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');

View File

@ -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">
@ -38,9 +41,6 @@
<%- include build/slide-header %>
<!-- For syntax highlighting -->
<link rel="stylesheet" href="<%- url %>/vendor/reveal.js/lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );