@vivaxy/reveal v2.2.1
@vivaxy/reveal
![]()
š A reveal.js cli

Feature
Based on reveal.js.
- Easy to setup. No cloning repositories. No template files.
- Markdown files as slides content.
- Sync sliding between clients.
- Auto reload when markdown file changes.
- Speaker view.
- Theme config.
- Inline html.
- Support Node.js >= v8.
Notable Markdown Syntax
- Use
\r?\n----\r?\nas horizontal slides separator. - Use
\r?\n---\r?\nas vertical slides separator. - Use
^Note:as speaker notes separator. - Use
<!-- .slide: data-background="#ff0000" -->to customize slide styles. - Use
<!-- .element: style="width: 60%;" -->to customize element styles. - Use
<!-- .element: class="fragment" -->to create fragment.
Basic Usage
npx
npx @vivaxy/reveal server --markdown /path/to/presentation.md
Keyboard Shortcuts
Space: NextUp,Down,Left,Right: Navigationk,j,h,l: Navigationf: Full-screens: Show slide noteso: Toggle overview.(Period,b,vor/): Turn screen blackEsc: Escape from full-screen, or toggle overviewalt + Left Click: Toggle zoomp,n: Previous and next
Advanced Usage
Commands
start
Basic Usage
reveal server \
--markdown ./ppt/reveal.md \
--theme solarized \
--highlight-theme solarized-light \
--transition slide \
--port 8080 \
--watch \
--separator '^\r?\n----\r?\n$' \
--separator-vertical '^\r?\n---\r?\n$' \
--separator-notes '^Note:' \
--width 1440 \
--height 900 \
--log-level 2 \
--script 'custom.js'Options
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--markdown | string | ā | N/A | markdown file |
--theme | string | ā | solarized | reveal.js theme |
--highlight-theme | string | ā | solarized-light | highlight.js theme |
--transition | string | ā | slide | reveal.js transitions styles |
--port | number | ā | 0 | server port |
--watch | boolean | ā | false | reload when markdown changed |
--separator | string | ā | ^\r?\n----\r?\n$ | horizontal slides separator |
--separator-vertical | string | ā | ^\r?\n---\r?\n$ | vertical slides separator |
--separator-notes | string | ā | ^Note: | speaker notes separator |
--width | number | ā | 1440 | slide width |
--height | number | ā | 900 | slide height |
--log-level | number/string | ā | 2 | log output level |
--script | string | ā | '' | insert custom script before head |
URL Parameters
print-pdf
Used to print as pdf files.
Add ?print-pdf&showNotes=true, like: http://127.0.0.1:3000/?print-pdf#/.
Press Ctrl/Command + p to open print dialog.
Usually, print-pdf is used with showNotes, like http://127.0.0.1:3000/?print-pdf&showNotes=separate-page#/
showNotes
Show speakers notes.
Add ?showNotes=true, like: http://127.0.0.1:3000/?showNotes=true#/.
Support
node >= v8.0
Change Log
See CHANGELOG.md.
Prior Art
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago