mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
Update to make slide mode support all extra syntax and change it's rendering engine
This commit is contained in:
parent
160b51d16a
commit
d39f1fc700
7 changed files with 376 additions and 87 deletions
lib
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue