Skip to content
Projects

asciidoctor/asciidoctor-reveal.js

View on GitHub

About

:crystal_ball: A reveal.js converter for Asciidoctor and Asciidoctor.js. Write your slides in AsciiDoc!

Other Projects

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

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.2.1 <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.

Explore related projects

Loading…