Sha256: 74f2157b5075126c97af4a94a9613ed04b5515a0a46b0bfe2b1c509f2ab6ef5c

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

# mado
[![Build Status](https://travis-ci.org/dtan4/mado.svg?branch=master)](https://travis-ci.org/dtan4/mado)
[![Gem Version](https://badge.fury.io/rb/mado.svg)](http://badge.fury.io/rb/mado)

Realtime [Github Flavored Markdown](https://help.github.com/articles/github-flavored-markdown) Preview with WebSocket

## Installation

Add this line to your application's Gemfile:

    gem 'mado'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install mado

## Usage

```
Usage: mado [options] FILE
    -p, --port=VAL                   Port number (default: 8080)
    -a, --addr=VAL                   Address to bind (default: 0.0.0.0)
        --debug                      Debug mode
```

When you execute the following command, HTTP server starts on `http://0.0.0.0:8080` and WebSocket server starts separately.
You can check the preview of `README.md` on the browser.

Preview will be refreshed immediately along with your edition.

```sh
$ mado -p 8080 README.md
```

#### NOTE

WebSocket server uses **Port 8081** in spite of `-p` option.
Please be careful to port conflict.

## Acknowledgement

* [github.css](https://gist.github.com/andyferra/2554919) is used for Github-like Markdown preview.

## Contributing

1. Fork it ( https://github.com/dtan4/mado/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mado-0.2.1 README.md
mado-0.2.0 README.md
mado-0.1.1 README.md