Commit Graph

407 Commits

Author SHA1 Message Date
Hakim El Hattab
c2fd760f8f replace deprecated hljs.highlightBlock calls, fix #2958 2021-05-21 09:13:40 +02:00
Hakim El Hattab
ac410debf6 rebuild assets 2021-05-20 18:42:31 +02:00
Hakim El Hattab
395356a0b1 update deps & drop node/gulp-sass in order to support node 16 #2959 2021-05-19 21:48:42 +02:00
Hakim El Hattab
56772afa32 update dependencies 2021-05-17 10:05:36 +02:00
Hakim El Hattab
632cc78873 fix errors when no markdown options are provided #2956 2021-05-17 10:02:12 +02:00
Hakim El Hattab
03126c509e
Merge branch 'dev' into plugin-markdown 2021-05-17 09:54:01 +02:00
Ujjwal Sharma
00acc730f0
add animateLists option to markdown plugin
Add an "animateLists" option to the markdown plugin that animates all
lists by default.
2021-05-13 20:03:09 +05:30
Ujjwal Sharma
6884741b94
improve renderer option handling
Don't waste time constructing a renderer then override it if one is
passed into the options object.
2021-05-13 19:58:45 +05:30
Hakim El Hattab
290c251c7e fix default md slide separator not working #2850 2021-02-10 10:34:25 +01:00
Hakim El Hattab
1e70d9fe46 upgrade to node-sass 5.0 (adds support for node 15.x) #2841 2020-11-25 15:06:29 +01:00
Hakim El Hattab
e09437f4fa escape HTML entities in code parsed from markdown, fixes #2744 2020-09-09 11:42:34 +02:00
Hakim El Hattab
faa8b56e2a dependency upgrades 2020-08-19 10:33:36 +02:00
Hakim El Hattab
37d8337411 add support for wrapping code in script tempalte to avoid html parser #2684 2020-06-05 10:47:31 +02:00
Hakim El Hattab
5e4c5c33a9 export the highlight.js instance 2020-05-27 15:25:26 +02:00
Hakim El Hattab
e6244a57b5 fix polyfills, add ie11 support 2020-05-26 09:47:01 +02:00
Hakim El Hattab
84b52984cd update dependencies 2020-05-19 18:44:40 +02:00
Hakim El Hattab
4f2293378b reveal.netlify.app -> revealjs.com 2020-05-19 18:27:00 +02:00
Hakim El Hattab
0a58c681fe move highlight themes from lib/css/ to plugin/highlight/ 2020-05-19 11:02:59 +02:00
Hakim El Hattab
f618de81de restore support for markdown speaker notes 2020-05-18 20:36:34 +02:00
Hakim El Hattab
3d2371f58c bundle html inside of notes.js, no more need for relatively locating external html 2020-05-18 15:59:18 +02:00
Hakim El Hattab
8fc2ec9238 removed phantomjs-based print-pdf plugin 2020-05-18 15:15:46 +02:00
Hakim El Hattab
fb22716ddf move built plugin files from /dist/plugin/ to /plugin/<name>/ 2020-05-18 14:41:56 +02:00
Hakim El Hattab
60cd098c8d .esm suffix for module bundle, marked/highlight.js are installed via npm 2020-05-04 10:39:37 +02:00
Hakim El Hattab
619b3a087c plugin consistency 2020-04-29 11:56:43 +02:00
Hakim El Hattab
0a1bcdf999 move markdown example from /plugins to /examples 2020-04-27 10:45:57 +02:00
Hakim El Hattab
951f5d04c2 add markdown support for code line numbers and line highlights #2371 2020-04-27 10:43:56 +02:00
Hakim El Hattab
a040ba3b41 remove unused code from md plugin 2020-04-27 10:43:29 +02:00
Hakim El Hattab
b92d16f48d make plugins work with multiple presentations on same page 2020-04-23 10:54:48 +02:00
Hakim El Hattab
ad113ba69d move notes-server plugin out of reveal.js core 2020-04-22 15:53:31 +02:00
Hakim El Hattab
93cdf8cfcc move multiplex plugin out to reveal/reveal-multiplex repo 2020-04-22 13:22:01 +02:00
Hakim El Hattab
e58502b3fb tweak plugin initialization to enable multi-instance plugins 2020-04-17 14:10:56 +02:00
Hakim El Hattab
4f6bdf1420 two js bundles; reveal.js (es6) and reveal.es5.js, add source maps 2020-04-17 10:59:55 +02:00
Hakim El Hattab
d9690462e0 add 'plugins' config option, new way of registering es5 plugins 2020-04-17 09:47:03 +02:00
Hakim El Hattab
08f29f08a2 initialize plugins serially 2020-04-16 16:40:46 +02:00
Hakim El Hattab
34458a988a fix code highlighting in markdown decks 2020-04-16 15:27:44 +02:00
Hakim El Hattab
a55cd813be convert plugins to ES modules, transpile es5 versions backwards compatibility 2020-04-15 10:23:51 +02:00
Hakim El Hattab
9522357349 changes to plugin api; registerPlugin only accepts plugin instance, instance exposes .id 2020-04-08 13:05:28 +02:00
Hakim El Hattab
855cc82d76 Reveal.add/remveEventListener -> Reveal.on/off 2020-04-07 09:05:56 +02:00
Hakim El Hattab
bff9bfb101 add support for automatically scrolling code highlights into view 2020-03-12 17:08:20 +01:00
Hakim El Hattab
ddd13ee9cf remove code slide from example 2020-03-09 09:40:53 +01:00
Hakim El Hattab
3f95a21009 fix markdown example 2020-03-09 09:33:27 +01:00
Hakim El Hattab
6fa7700fe5
Merge pull request #2515 from Bagira80/boolean-attributes-from-markdown
Markdown: Boolean (data-)attributes will now be added to elements, too.
2020-03-03 16:00:48 +01:00
Hakim El Hattab
003a848790 update to highlight.js 9.18.0 #2562 2020-01-29 14:51:28 +01:00
Deniz Bahadir
f6d96fe45d Markdown: Boolean (data-)attributes will now be added to elements, too. 2019-10-23 21:18:14 +02:00
Hakim El Hattab
474731d829 highlight.js 9.11 -> 9.15 2019-08-22 13:21:12 +02:00
Hakim El Hattab
25e521a16c Merge branch 'alternate-timing' of https://github.com/fghaas/reveal.js into dev 2019-05-27 08:08:00 +02:00
Hakim El Hattab
a2e9e525d5 avoid exception when highlighting empty code blocks 2019-05-27 07:30:08 +02:00
Florian Haas
23c12d7332 Notes: Weakly enforce a minimum allocated pacing time per slide
When using the totalTime-based pacing calculation, a presenter may
inadvertently set totalTime and per-slide data-timing attributes in
such a way that the pacing time for some slides is impossibly low or
even negative.

Add a check to ensure that the pacing on a slide never falls below a
configurable minimum, defaulting to 0. Display an alert if the
pacing for any slide(s) falls below the threshold.
2019-05-22 21:44:44 +02:00
Florian Haas
078ba62050 Notes: Introduce alternate pacing timer, based on total presentation time
The current pacing timer operates on the assumption that there is
a default amount of time to be allocated to each slide, and that
individual slides can deviate from that default by specifying their
own data-timing attribute.

This patch introduces an alternate pacing method: by specifying
the totalTime configuration option, the presenter can set the total
time available to present. The pacing timer will then continue to
allocate the exact pacing time for slides that do have data-timing
set, as before. However, rather than applying the defaultTiming
constant to all others, it will

- Add up the time already allocated to slides via data-timing;
- subtract that from totalTime;
- divide the difference by the number of slides without data-timing set;
- apply the thus-calculated average to those slides.

totalTime has no default, and if both defaultTiming and totalTime are
set, totalTime wins. This preserves backward compatibility: if a
presenter has set defaultTiming and updates reveal.js, totalTime will
be null and defaultTiming is still applied to all slides without a
data-timing attribute. The presenter can then switch to the automatic
calculation, if desired, by setting a value for totalTime.
2019-05-12 20:10:06 +02:00
Hakim El Hattab
32197bd77d fix numeric presence condition 2019-04-10 10:09:41 +02:00