Skip to content

remy/remarker

 
 

Repository files navigation

remarker v1.3.0

CircleCI codecov

Remark cli

remark is a simple, in-browser, markdown-driven slideshow tool. remarker is a command line tool for building a remark-based slideshow page very easily.

Usage

Install via npm:

$ npm install --save remarker

Write your slide in markdown:

# My Slide

---

# My Slide 2

???

Presenter notes here

---

save the above as slides.md

Invoke remarker command.

$ ./node_modules/.bin/remarker

Or if you have npx command, then hit:

$ npx remarker

This starts a local server at port 6275 (this is configurable) and you can see your slides at http://localhost:6275/.

See remark's slide and documentation for more details about its syntax, features etc.

Build slides

You can build your slides as static page as remarker build command.

$ ./node_modules/.bin/remarker build

This builds your slides as html page under build/ directory. The output directory is configurable. See the below for details.

Installing globally

You can instead install it globally, in one of these two ways:

sudo npm i -g remarker    # from the npm repository
sudo npm i -g .           # if there's a clone in the current directory

After that, you should be able to invoke it this way from any directory in your system:

remarker [build]

Configuration

You can configure remarker with configuration file called remarker.yml:

Default settings are as follows:

port: 6275
dest: build
source: slides.md
assets: ['assets']
title: ''
css: ''
remarkConfig: {}
  • port is the port number of remarker server. Default is 6275.
  • dest is the destination of remarker build command. Default is build
  • source is the source markdown filename. Default is slides.md.
  • assets is the list of assets directory. These directories are copied/served statically.
  • title is the page title of the slides. Default is an empty string.
  • css is css text you want to add to slides' html page.
  • remarkConfig is the config object which is passed to remark.create(options). Default is an empty object.

Examples

Motivation of remarker

remark is a great presentation tool and you can write your slide's contents in markdown. The problem is when you simply use ramark, you need to maintain the html, css and scripts as well as markdown. If you care the details of design and style of the slides, that's fine. However if you don't care the design of the slides that much and want to focus only on the contents, then the settings of css, html, scripts seem quite messy. The problem remarker solves is this point. remarker separates the contents (= markdown) from the settings (css, html, scripts). So you can only focus on and keep maintaining the contents of the slides and let remarker do the rest of the work. This is easier than using remark directly.

History

  • 2017-08-05 v1.3.0 Add remarkConfig prop.

License

MIT

About

Remark cli with live reload

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 67.6%
  • HTML 32.4%