Need private packages and team management tools?Check out npm Teams »

@patarapolw/reveal-md

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

Install

npm i @patarapolw/reveal-md

DownloadsWeekly Downloads

2

Version

0.1.4

License

MIT

Unpacked Size

101 kB

Total Files

17

Last publish

Collaborators

  • avatar