@patarapolw/reveal-md
v0.1.4
Published
Library for parsing/generating Reveal.js presentation to-and-from Markdown
Downloads
12
Maintainers
Readme
@patarapolw/reveal-md
A framework for manipulating Reveal.js <--> Markdown. With Showdown extensions and HyperPug. See https://patarapolw.github.com/reveal-editor
Features
- Global scripting
<script></script>and styling<style></style>is now supported in slides marked with
// global
content (Pug or HTML or extended Markdown)- The slides marked with
// globalor// hiddenwill be hidden. - Implementing
<style scoped>would also be nice, but I haven't done it yet. - Showdown extensions (with indented-filter)
- HyperPug extensions
Exporting to single file HTML
I have already tested this in /scripts/test.ts
import RevealMd from "@patarapolw/reveal-md";
import fs from "fs";
const r = new RevealMd();
r.update(fs.readFileSync("../../example.md", "utf8"));
r.export("output");Live editor
See https://github.com/patarapolw/reveal-editor.
Installation
npm i @patarapolw/reveal-md