diff options
author | Wu Cheng-Han | 2016-07-02 16:09:26 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-07-02 16:09:26 +0800 |
commit | d39f1fc70084ad5b7c40a03657e5ff8d03cc7944 (patch) | |
tree | fbf82bac4481652b6c5587f4cb9ced70ed63373f /lib | |
parent | 160b51d16a180a164f9b6eddbd80939478c7bd4b (diff) |
Update to make slide mode support all extra syntax and change it's rendering engine
Diffstat (limited to 'lib')
-rw-r--r-- | lib/response.js | 12 |
1 files changed, 3 insertions, 9 deletions
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) { |