papaeye / emacs-markdown-hub

A Markdown Hub publisher for Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

markdown-hub.el

markdown-hub.el is a Markdown Hub publisher for Emacs. It uses Markdown Hub as a Docker container.

markdown-hub.el and Markdown Hub are based on syohex/emacs-realtime-markdown-viewer.

Requirements

Install

  1. Put markdown-hub.el somewhere in your load-path.

  2. Add the following code into your .emacs:

    (autoload 'markdown-hub-mode "markdown-hub" nil t)
    (autoload 'markdown-hub-browse "markdown-hub" nil t)

Usage

(Pull the Docker image of Markdown Hub in advance: docker pull papaeye/markdown-hub)

  1. Open a Markdown file.
  2. Run M-x markdown-hub-browse to open the Markdown Hub preview page. It starts the Docker container of Markdown Hub if it is not running.
  3. Run M-x markdown-hub-mode to enable Markdown-Hub mode in the Markdown buffer. Now you can experience live Markdown preview in the Markdown Hub preview page.

To use with boot2docker, add the following code into your .emacs:

(setq markdown-hub-hostname 'boot2docker)

About

A Markdown Hub publisher for Emacs


Languages

Language:Emacs Lisp 100.0%