npm install -g reveal-md
npm install -g decktape
- install FiraCode system-wide
npm start
- start the slide show (must be active!):
npm start
- in a different shell:
npm run pdf
On Arch Linux the decktape
command requires the CLI option --chrome-arg=--no-sandbox
(for details see "Errors - No usable sandbox!" section in this issue
reveal-md
is a convenience wrapper around reveal-js
for people who prefer using markdown instead of plain html. The main advantages is that you only have your content in the Git repository (and none of the reveal-js framework).
The basic command for starting a reveal-md
presentation is reveal-md your-content.md
.
The presentation can be customized:
- from the command line
- from the header section in the markdown file
- from a template file (i.e. reveal.html)
Customization options include:
- css
- reveal configs (i.e. plugins)
- reveal themes
...is done via the file preproc.js
.
IMPORTANT: Take care of line endings in markdown files, otherwise the mechanism won't work.
For details see preproc.js
:
// const LINE_SEPARATOR = '\r\n'; // <-- Windows default
const LINE_SEPARATOR = '\n'; // <-- Linux default
const preprocess = async (markdown, options) =>
markdown
.split(LINE_SEPARATOR)
//...
reveal.html
: reveal-md format of the standardindex.html
used by reveal-js: include reveal-plugins herepackage.json
: includes scripts for starting presentation and creating pdfslides/index.md
: the main file: include other files here usingFILE: other-file.md
syntax