From 793aef0e2e949ca542f7570a82823af20cb34ace Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 7 Nov 2016 21:27:58 +0800 Subject: Fix syntax highlighting not apply correctly in slides --- public/js/extra.js | 1 - public/js/index.js | 2 ++ public/js/pretty.js | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'public/js') 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'); -- cgit v1.2.3