markdown-it-revealjs

1.0.0 • Public • Published

markdown-it-revealjs

Usage

npm install --save markdown-it-revealjs
var md = require('markdown-it')();
md.use(require('markdown-it-revealjs'));

Description

RevealJS allows us to write markdown within slide sections.

This markdown-it plugin allows us to write markdown to generate a markup structure that is compatible with RevealJS horizontal and vertical navigation.

The following Markdown:

Section 1
 
---
 
Section 2
 
===
 
Section 2.1
 
===
 
Section 2.2
 
---
 
Section 3

Generates the following HTML:

<section class="reveal">
    <div class="slides">
        <section>
            <h1>Section 1</h1>
        </section>
        <section>
            <section>
                <h1>Section 2</h1>
            </section>
            <section>
                <h1>Section 2.1</h1>
            </section>
            <section>
                <h1>Section 2.2</h1>
            </section>
        </section>
        <section>
            <h1>Section 3</h1>
        </section>
    </div>
</section>

License

MIT © Anthony Hogg

/markdown-it-revealjs/

    Package Sidebar

    Install

    npm i markdown-it-revealjs

    Weekly Downloads

    6

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    7.72 kB

    Total Files

    4

    Last publish

    Collaborators

    • ynohat