asciidoctor/asciidoctor-reveal.js
:crystal_ball: A reveal.js converter for Asciidoctor and Asciidoctor.js. Write your slides in AsciiDoc!
reveal.js converter for Asciidoctor.js
A reveal.js converter for Asciidoctor.js that transforms an AsciiDoc document into an HTML5 presentation designed to be executed by the reveal.js presentation framework.
Install
Requires Node.js >= 20. asciidoctor is a required peer dependency (any >=4.0.0 <5.0.0 release), so install it alongside the converter:
npm i --save asciidoctor @asciidoctor/reveal.js
Command line
npx asciidoctor-revealjs presentation.adoc # writes presentation.html
npx asciidoctor-revealjs -o - presentation.adoc # write to stdout
Run npx asciidoctor-revealjs --help for the full option list.
JavaScript API
Asciidoctor.js 4.0 is an ESM package and its conversion functions are asynchronous, so use import and await:
import { convertFile } from 'asciidoctor'
import { register } from '@asciidoctor/reveal.js'
register() // registers the revealjs / reveal.js backends and the highlight.js adapter
await convertFile('presentation.adoc', { safe: 'safe', backend: 'revealjs' })
Documentation
For setup instructions and the AsciiDoc syntax used to write a presentation, see the documentation.
License
MIT.
Similar Projects
Discover other similar projects and AI models.
Best harness + editor + linter for generating slides in Claude Code / Codex - Claude Design Open Source Alternative
🪐 Markdown with superpowers: from ideas to papers, presentations, websites, books, and knowledge bases.
:gem: A fast, open source text processor and publishing toolchain, written in Ruby, for converting AsciiDoc content to HTML 5, DocBook 5, and other formats.