Giter Club home page Giter Club logo

reveal-md's Introduction

Reveal.js x Markdown (Showdown.js) editor, CLI and viewer.

Features

How to create Reveal-md

  • Global scripting <script></script> and styling <style></style> is also supported in slides marked with
// global
content (CSS, Pug, HTML or extended Markdown)
  • The slides marked with // global or // hidden will be hidden.

HTML is also supported.

<small>Small character</small>

// slide

<small>Small character</small>

Furthermore, you can reference other online CSS urls via

  • // css=<URL>

Installation of CLI editor

npm i https://github.com/patarapolw/reveal-md.git

Or,

npm i -g https://github.com/patarapolw/reveal-md.git

It might possible to use Yarn as well, but NPM is confirmed to work, especially for npm i ./reveal-md (which will create symlink instead of copy files.)

git submodule add https://github.com/patarapolw/reveal-md.git
cd reveal-md && npm i
cd ..
npm i ./reveal-md
# This will create symlink, but `yarn add ./reveal-md` will copy to `node_modules`

Usage

reveal-md [options] <fileOrDir>

Read file or directory or in reveal-md

Positionals:
  fileOrDir  Path to the file or directory to read

Options:
  --version   Show version number                                      [boolean]
  --edit, -e  Edit the file in editor                                  [boolean]
  --help      Show help                                                [boolean]

Additional features of CLI editor

  • // css=<FILE_PATH> also works

To add external JavaScript, you will have to edit

Save as HTML (and associated assets folder)

This is best done by downloading complete web page, in associated web browser.

Using web crawlers, like https://github.com/website-scraper/node-website-scraper won't work, because some JavaScript in Reveal.js is dynamically injected.

Online viewer

You can do it at https://patarapolw.github.io/reveal-md/reveal/?q=<YOUR_URL_HERE>

Create your own version

  • Clone this project
  • Build /editor/ and/or /reveal/, and the following environmental variables can be set if needed.
    • BASE_URL= -- needed for GitHub Pages
    • NO_EDITOR= -- if you don't want to build the editor. Build the /reveal/index.html only.

Duplicated projects

Contributions

reveal-md's People

Contributors

patarapolw avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.