Generate RevealJS slideshows from Markdown using litoria generate -r revealjs.
See Slideshow Token Reference for the full token reference, or open the live token preview to see them rendered in RevealJS.
Quick Start
litoria init -t slideshow /path/to/slides
litoria generate -r revealjs /path/to/slides
litoria serve /path/to/generated/slides
Usage
litoria generate -r revealjs ./slides
litoria generate -r revealjs -t dracula ./slides
The -t option selects the RevealJS theme (default: white). Available themes: white, black, beige, blood, dracula, league, moon, night, serif, simple, sky, solarized.
Markdown Conventions
The source Markdown uses:
-
---to separate horizontal slides -
--for vertical (nested) slides -
Note:for speaker notes
YAML frontmatter (title, author, date) is resolved into {placeholder} tokens in the content. Images referenced as image/… are copied to the output directory automatically.
Example:
---
title: My Presentation
author: Your Name
date: August 2026
---
# {title}
{author} ยท {date}
Note:
Welcome everyone to the presentation.
---
## Slide Two
- Point A
- Point B
--
### Vertical Sub-slide
Additional detail without cluttering the main slide.
Templates
Two templates are available when scaffolding with litoria init -t slideshow:
| Template | Description |
|---|---|
|
Plain Markdown without tokens |
|
Demonstrates the token syntax |
CSS Files
| File | Description |
|---|---|
|
Base RevealJS theme overrides (fonts, headings, tables) |
|
Token CSS classes + complex layout classes |
Token Syntax
Slide Markdown files support a {token} shorthand that replaces common HTML/CSS patterns. The token name maps directly to a CSS class in tokens.css — if the class exists, the token works.
| Category | Examples | Description |
|---|---|---|
Colors |
|
Colored bold text |
Emphasis |
|
Bold dark or muted gray |
Badges |
|
Status badges for tables |
Blocks |
|
Slide-level elements |
Callouts |
|
Colored callout boxes |
Flow |
|
Process diagrams |
Images |
|
Image with size/position |
Video |
|
Video with RevealJS media attributes |
Complex layouts (grids, cards, stat rows) remain as HTML.
For the full token reference including all parameters, resolution order, and before/after examples, see Slideshow Token Reference. You can also open the live token preview to see the tokens rendered as actual RevealJS slides.
Speaker View
RevealJS includes a speaker view that shows the current slide, next slide, speaker notes, and a timer. It requires HTTP serving (not file://).
litoria generate -r revealjs /path/to/slides
litoria serve /path/to/slides/generated/2026-08-17_10-30
Open http://localhost:8080 and press S to open the speaker view.
| Option | Default | Description |
|---|---|---|
|
|
HTTP port |
Press Ctrl+C to stop the server.