Markdown server for reveal.js.
npm install -g reveal-md
reveal-md demo
To open specific Markdown file as Reveal.js slideshow:
reveal-md slides.md
Show (recursive) directory listing of Markdown files:
reveal-md dir/
Show directory listing of Markdown files in current directory:
reveal-md
Override theme (default: default
):
reveal-md slides.md --theme solarized
Override slide separator (default: \n---\n
):
reveal-md slides.md --separator "^\n\n\n"
Override port (default: 1948
):
reveal-md slides.md --port 8888
- To separate slides in Markdown, use three dashes (
---
, a ruler in Markdown), surrounded by empty lines. Or override as shown above. - Reveal.js supports "vertical" slides as well. Use
----
by default (also surround by newlines). This can also be overridden using--vertical
from CLI.
reveal-md
always starts a local server and opens the default browser- From any presentation, navigate to the root (e.g.
http://localhost:1948/
) to get directory listing of (linked) Markdown files. Root folder is resolved from Markdown file (or directory)reveal-md
was started with.