@patarapolw/reveal-md
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

@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 // global or // hidden will 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

Package Sidebar

Install

npm i @patarapolw/reveal-md

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

101 kB

Total Files

17

Last publish

Collaborators

  • patarapolw