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('prismjs/themes/prism.css');
require('highlight.js/styles/github-gist.css');
var Prism = require('prismjs'); var Prism = require('prismjs');
require('prismjs/components/prism-wiki'); require('prismjs/components/prism-wiki');

View file

@ -6,6 +6,8 @@ require('../css/extra.css');
require('../css/slide-preview.css'); require('../css/slide-preview.css');
require('../css/site.css'); require('../css/site.css');
require('highlight.js/styles/github-gist.css');
var toMarkdown = require('to-markdown'); var toMarkdown = require('to-markdown');
var saveAs = require('file-saver').saveAs; var saveAs = require('file-saver').saveAs;

View file

@ -2,6 +2,8 @@ require('../css/extra.css');
require('../css/slide-preview.css'); require('../css/slide-preview.css');
require('../css/site.css'); require('../css/site.css');
require('highlight.js/styles/github-gist.css');
/* other vendors plugin */ /* other vendors plugin */
var S = require('string'); 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/reveal.css">
<link rel="stylesheet" href="<%- url %>/vendor/reveal.js/css/theme/black.css" id="theme"> <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/github-extract.css'>
<link rel="stylesheet" href='<%- url %>/css/gist.css'> <link rel="stylesheet" href='<%- url %>/css/gist.css'>
<link rel="stylesheet" href="<%- url %>/css/mermaid.css"> <link rel="stylesheet" href="<%- url %>/css/mermaid.css">
@ -38,9 +41,6 @@
<%- include build/slide-header %> <%- include build/slide-header %>
<!-- For syntax highlighting -->
<link rel="stylesheet" href="<%- url %>/vendor/reveal.js/lib/css/zenburn.css">
<!-- Printing and PDF exports --> <!-- Printing and PDF exports -->
<script> <script>
var link = document.createElement( 'link' ); var link = document.createElement( 'link' );