• Stars
    star
    138
  • Rank 256,147 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

โ–ถ๏ธ Remark cli

remarker v1.15.0

ci 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 the configuration file remarker.yml:

(Note: remarker.yml should be put in the current directory.)

Default settings are as follows:

port: 6275
dest: build
out: index.html
source: slides.md
title: ''
assets: ['assets']
css: ''
cssFiles: []
script: ''
scriptFiles: []
remarkConfig: {}
remarkPath: moduleDir + '/vendor/remark.js'
scriptFilesAfterCreate: []
livereload: true
livereloadPort: 35729

Basic options

  • port is the port number of remarker server. Default is 6275.
  • dest is the destination of remarker build command. Default is build
  • out is the filename of the result html page. Default is index.html
  • source is the source markdown filename. Default is slides.md.
  • 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.
  • cssFiles is the list of additional stylesheet files (URL or the file path relative to your current working director) you want to add to slides' html page. If you provide file paths, these files are copied/served statically. Default is an empty array.

Advanced options

  • assets is the list of assets directory. These directories are copied/served statically.
  • scriptFiles is the list of additional JavaScript files (URL or the file path relative to your current working director) appended after the remark.js. If you provide file paths, these files are copied/served statically. Default is an empty array.
  • script is additional JavaScript code appended after the remark.js and scriptFiles. Default is an empty string.
  • remarkConfig is the config object which is passed to remark.create(options). Default is an empty object.
  • remarkPath is the path to remark.js. This replaces the original remark.js with specified one.
  • scriptFilesAfterCreate is the list of additional JavaScript files (URL or the file path relative to your current working director) appended after the remark.create(). If you provide file paths, these files are copied/served statically. Default is an empty array.
  • livereload is the flag to toggle livereloading feature. Default is true.
  • livereloadPort is the port number for livereloading websocket connection. Default is 35729.

CLI Usage

Usage:
  remarker [options] serve      Serves all the assets at localhost
  remarker [options] build      Builds all the assets to the dest

Options:
  -h, --help                    Shows the help message and exits
  -v, --version                 Shows the version number and exits
  -s, --source <path>           Specifies the slide's markdown file.
                                This overrides 'source' property of the config file.
  -o, --out <filename>          The output filename of the slides. Default is index.html.
  -d, --dest <path>             The destination directory for built slides.
  -p, --port <number>           The port number for dev server.
  -b, --open-browser            Open the browser to the page when server starts. Default is false.

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 remark, 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. remarker solves this problem. 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.

How-tos

How to use images in slides

Put the images under ./assets directory and they are automatically served/copied and you can reference it like <img src="assets/my-diagram.png" width="600" /> in your slides.

The directory name of assets can be configured in remarker.yml. See the configuration section for details.

Who uses this tool?

See this search.

History

  • 2022-11-24 v1.15.0 Added loading indicator.
  • 2022-02-13 v1.14.0 Fixed error while changing slides.md
  • 2020-05-11 v1.12.0 Added scriptFilesAfterCreate option.
  • 2019-10-18 v1.11.1 Fix dependency.
  • 2019-10-18 v1.11.0 Added -b, --open-browser option.
  • 2019-05-14 v1.10.0 Added --dest, --out, and --port CLI options.
  • 2018-08-06 v1.9.0 Added :emoji: transformation. Modify cssFiles option handling (#11).
  • 2018-06-10 v1.8.1 Fixed help and version options.
  • 2018-06-10 v1.8.0 Added livereloading feature.
  • 2018-01-29 v1.7.0 Enabled file asset (#8).
  • 2018-01-13 v1.6.1 Fixed -s option.
  • 2018-01-12 v1.6.0 Added --source cli option.
  • 2017-08-05 v1.3.0 Added remarkConfig prop.

License

MIT

More Repositories

1

packup

๐Ÿ“ฆ Zero-config web application packager for Deno
TypeScript
302
star
2

coveralls-gradle-plugin

๐Ÿ‘จโ€๐Ÿ”ง gradle plugin for coveralls
Groovy
254
star
3

saku

โ“‚๏ธ Markdown-based task runner
Go
71
star
4

node-saku

โ“‚๏ธ Markdown-based task runner
JavaScript
71
star
5

kocha

๐Ÿต Modern, simpler Mocha clone, no globals, lint friendly
JavaScript
69
star
6

deno-bin

Use Deno via npm
JavaScript
53
star
7

deno_sticker

๐Ÿฆ• The data I used for submitting for printing deno_sticker.
50
star
8

twd

๐Ÿšฉ Simple tailwind like CLI tool for deno ๐Ÿฆ•
TypeScript
44
star
9

now-deno-example

A demo application of now-deno and deno-postgres.
HTML
30
star
10

lepont

๐ŸŒ‰ A native <-> browser (webview) bridge library for react-native
TypeScript
29
star
11

deno_license_checker

๐Ÿ“„ CLI tool for checking license headers in files
TypeScript
21
star
12

buttons

๐ŸŒฑ buttons is a web service to help you keep doing things everyday
JavaScript
21
star
13

update-pr-description

Update Pull Request Description on Push
JavaScript
19
star
14

status-back

โฌ…๏ธ๐Ÿ”ต Send the status back to the github from CI environment
JavaScript
19
star
15

berber

Static site generator generator on top of gulp ecosystem
JavaScript
18
star
16

license_checker_github_action

GitHub Action for checking the license lines of the files in a repository
Dockerfile
16
star
17

bulbo

๐Ÿน Generate your static site with gulp plugins!
JavaScript
15
star
18

ruby-bmp

๐Ÿ†™ No hassle on bumping. [Deprecated] See https://github.com/kt3k/bmp instead
Ruby
13
star
19

moneybit

A Cli tool for creating the general ledger of a journal https://npm.im/moneybit
JavaScript
13
star
20

deploy_dir

[DEPRECATED] ๐Ÿ“ฆ Read a directory and package it as Deno Deploy source code
TypeScript
12
star
21

times-kt3k

My timeline
TypeScript
11
star
22

bmp

โคด๏ธ Version up. No hassles.
TypeScript
11
star
23

shuho

Weeknotes
CSS
10
star
24

mito

Tiny (222B) micro-templating engine
JavaScript
10
star
25

domaindoc

๐ŸŒŠ Documentation tool for domain models
JavaScript
9
star
26

codecov-karma-example

An example repository for showing how to generate the codecov reports with Karma testing framework
JavaScript
8
star
27

moneybit-app

๐Ÿ’ตไป•่จณๅธณใ‚’ๅ…ฅๅŠ›ใ—ใŸใ‚‰ๆ็›Š่จˆ็ฎ—ๆ›ธใƒป่ฒธๅ€Ÿๅฏพ็…ง่กจใ‚’่กจ็คบใ—ใฆใใ‚Œใ‚‹ใ‚ขใƒ—ใƒช WIP
JavaScript
8
star
28

lambda-deno-runtime-wip

Run deno in AWS Lambda environment (WIP)
Makefile
7
star
29

mux_async_iterable

Multiplexer of async iterables for JavaScript, written in TypeScript
TypeScript
6
star
30

minimisted

Handy wrapper of `minimist`
JavaScript
6
star
31

layout1

Gulp transform which `wraps` the files in the stream with the given layout template(s).
JavaScript
6
star
32

emoji-gen

๐Ÿถ ๐Ÿญ ๐Ÿ‘ฝ Create your own set of `emoji`s from your images.
JavaScript
6
star
33

arrowkeys

Arrowkey events in browser
JavaScript
5
star
34

deno_talk_1

5
star
35

talk_jsconfjp_2022

JSConf JP 2022 slides
JavaScript
5
star
36

todomvc-test

โ˜‘๏ธ Test TodoMVC on the give url.
JavaScript
5
star
37

line-bot-deno-deploy

An example LINE bot on Deno Deploy
TypeScript
5
star
38

basic_auth

Module for performing Basic Auth in Deno Deploy
TypeScript
5
star
39

langsheet

๐ŸŒTranslation data to HTML table converter
HTML
5
star
40

lepont-async-storage

Use react-native's AsyncStorage in browser, a lepont plugin
TypeScript
5
star
41

post-wavy

use ~ in require and import calls
JavaScript
5
star
42

branch-pipe

Simple syntax for branching and merging a stream
JavaScript
4
star
43

browser-streaming-examples

examples to perform streaming in browsers
JavaScript
4
star
44

vinyl-serve

Serves the vinyl stream directly
JavaScript
4
star
45

ebean-enhance-plugin

A gradle plugin for enhancing ebean entities.
Kotlin
4
star
46

bijective_base_n

Convert numbers to bijective base-n notation
TypeScript
4
star
47

stubbatti

A command line stub http server with the special DSL.
JavaScript
4
star
48

react-streaming-ssr-examples

random streaming ssr examples
TypeScript
4
star
49

node-es-logger

โ‡๏ธ Creates bunyan logger bound to elasticsearch output.
JavaScript
4
star
50

japanese-income-tax

๐Ÿ’ด A tool for calculating Japanese income tax.
JavaScript
4
star
51

localsd

Localhost Service Discovery service
JavaScript
3
star
52

t10

๐ŸŒ Translation (t10) for browser
JavaScript
3
star
53

idnt

Change indent level
JavaScript
3
star
54

now-deno-demo

A demo application of now-deno and deno-postgres.
HTML
3
star
55

gzip_size

Shows the gzipped size of the given file
TypeScript
3
star
56

vscode-pixeledit

JavaScript
3
star
57

prisma-deno-deploy-example

The example usage of Prisma Data Proxy in Deno Deploy
TypeScript
3
star
58

deps_info

An alternative to `deno info`, supports non-standard file imports, such as .css, .svg, etc
TypeScript
3
star
59

DCSA

Why DCSA architecture?
3
star
60

ScenarioScript

Script language suitable for storing scenario data.
JavaScript
3
star
61

example-karma-browserify-babel-istanbul

Example settings of karma-browserify and babel-plugin-istanbul
HTML
3
star
62

docker-distroless-deno-example

Run deno in distroless container
Dockerfile
2
star
63

event-hub

A dom which works as an event hub
JavaScript
2
star
64

dom-gen

Utility for dom generation, a jquery plugin
JavaScript
2
star
65

matango

A fragment language, expressing key-value pairs, aims to be embedded in other languages.
JavaScript
2
star
66

talk_devsumi_2022_deno

Makefile
2
star
67

anarchy-golf-old-solutions

my old solutions of anarchy golf. most of things don't make sense anymore even to me.
Python
2
star
68

vinyl-fork

Fork a vinyl stream
JavaScript
2
star
69

talk_fresh

2
star
70

vinyl-accumulate

Accumulates input vinyls and appends them to the output
JavaScript
2
star
71

deploy-require-test

TypeScript
2
star
72

iterable_file_server

Serve items from `AsyncIterable<File>`
TypeScript
2
star
73

deno_snippets

random deno snippets
TypeScript
2
star
74

swipe-event

Handle swipe events
JavaScript
2
star
75

example-testdouble.js

Example usage of testdouble.js
JavaScript
2
star
76

layout-wrapper

๐Ÿน Wrap the contents in the layout template. gulpfriendly.
JavaScript
2
star
77

souffle

DEPRECATED
JavaScript
2
star
78

denobook

denobook draft
JavaScript
2
star
79

hash-route

๐Ÿ”€ A simple frontend router based on decorator and hash string
JavaScript
2
star
80

gameloop

Simple game loop
TypeScript
2
star
81

deploy-import-assert-test

TypeScript
2
star
82

zenn-like

Classless css framework which simulates zenn.dev's UI
CSS
2
star
83

talk_deno_deploy

toranoana.deno #0 ใฎ Deno Deploy ใฎ่ฉฑใฎใ‚นใƒฉใ‚คใƒ‰
Makefile
2
star
84

tee_async_iterable

tee for AsyncIterable
TypeScript
2
star
85

unocss-deno-ssr-example

minimal unocss ssr usage in Deno
TypeScript
2
star
86

denowk

Awk like command line utility, you can run JavaScript for each line of input.
TypeScript
2
star
87

deno_talk_4

talk about lambda and deno https://kt3k.github.io/deno_talk_4/
2
star
88

littleweb

doodles
2
star
89

esbuild_loader

A utility module for loading esbuild wasm into Deno runtime from the disk
TypeScript
2
star
90

talk_fresh_2

JavaScript
1
star
91

escape-cli

`escape-cli` command escapes the stdin and outputs the result to stdout.
JavaScript
1
star
92

astro-deno-example

Astro
1
star
93

ulid

ULID for Deno
TypeScript
1
star
94

example-bundle-moment-locale-ja-timezone-jst

Small moment bundle example for locale=ja and timezone=jst env
JavaScript
1
star
95

license_check_configs

1
star
96

eslint-config-souffle

[DEPRECATED, I switched to standard] eslint shareable config for souffle
JavaScript
1
star
97

prisma-example

JavaScript
1
star
98

windy-chicken-26

TypeScript
1
star
99

spn

๐Ÿ‘พ Sprite Engine ๐Ÿ‘พ
JavaScript
1
star
100

babel-preset-decorators-legacy

Babel preset which only includes babel-plugin-transform-decorators-legacy plugin.
JavaScript
1
star