From d39f1fc70084ad5b7c40a03657e5ff8d03cc7944 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 2 Jul 2016 16:09:26 +0800 Subject: Update to make slide mode support all extra syntax and change it's rendering engine --- lib/response.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/response.js b/lib/response.js index 133d7a37..a04b7176 100644 --- a/lib/response.js +++ b/lib/response.js @@ -22,12 +22,8 @@ var md = require('reveal.js/plugin/markdown/markdown'); //reveal.js var slideOptions = { - template: fs.readFileSync(config.slidepath).toString(), - theme: 'css/theme/black.css', - highlightTheme: 'zenburn', separator: '^(\r\n?|\n)---(\r\n?|\n)$', - verticalSeparator: '^(\r\n?|\n)----(\r\n?|\n)$', - revealOptions: {} + verticalSeparator: '^(\r\n?|\n)----(\r\n?|\n)$' }; //public @@ -544,11 +540,9 @@ function showPublishSlide(req, res, next) { url: origin, title: meta.title || title, description: meta.description, - theme: slideOptions.theme, - highlightTheme: slideOptions.highlightTheme, slides: slides, - options: JSON.stringify(slideOptions.revealOptions, null, 2), - GA: meta.GA + GA: meta.GA, + useCDN: config.usecdn }; return renderPublishSlide(data, res); }).catch(function (err) { -- cgit v1.2.3