asciidoctor/asciidoctor-reveal.js
Acerca de
:crystal_ball: A reveal.js converter for Asciidoctor and Asciidoctor.js. Write your slides in AsciiDoc!
Otros proyectosCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalreveal.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.
Explorar proyectos relacionados
Cargando…