Project

mado

0.0
No commit activity in last 3 years
No release in over 3 years
Realtime Github Flavored Markdown Preview with WebSocket
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Project Readme

mado

Build Status Gem Version

Realtime 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.

$ 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 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