ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Markdown HTML Preview

by zeyon ST2/ST3

Markdown HTML Preview for Sublime Text 2/3

Details

Installs

  • Total 49K
  • Win 25K
  • OS X 17K
  • Linux 8K
Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6
Windows 14 16 23 17 13 17 18 9 19 14 23 26 19 22 14 17 17 17 22 11 11 16 18 22 15 32 20 15 9 21 14 22 23 23 28 11 7 25 19 18 26 22 12 20 24 13
OS X 7 3 18 7 17 12 7 8 5 10 14 10 19 15 8 3 9 8 10 8 8 2 15 16 14 14 13 10 4 3 7 17 8 19 12 8 10 8 12 17 15 12 2 5 11 23
Linux 4 6 6 4 7 6 8 4 2 6 11 9 3 11 4 0 7 2 2 7 9 1 4 6 10 2 11 9 9 7 7 7 5 6 7 6 10 6 7 5 9 8 7 6 7 11

Readme

Source
raw.​githubusercontent.​com

Markdown HTML Preview for Sublime Text 2/3

Purpose

I love markdown and I use it for almost everything that's text-based. This plugin allows you to automatically inject your markdown document into an HTML page, some CSS and JavaScript magic allows you to view your document in your web browser.

I prefer this method, since it allows me to use different HTML templates for different purposes, e.g. a template for printing/PDF or some other template to upload a document to the web.

Installation

Installation via Sublime Package Control

  1. Install the Sublime Package Control package: https://sublime.wbond.net/installation
  2. Use Package Control to install this package (Markdown HTML Preview)

Manual installation

Clone the repostiory into your Package Directory

Make sure you name the directory Markdown HTML Preview

Usage

Install the plugin an use the following shortcut to preview the file:

ctrl+shift+m

You can of course alter the key bindings in your Sublime Text settings.

Template

You can easily change and update the styles and layout of your HTML template. Simply edit the code in the <packagedir>/src/ directory and use Gulp to create a new distribution file.

  1. Download and install node.js

  2. Open a shell in the plugin directory and install dependencies:

    npm install npm install -g bower bower install

  3. Edit your template (./src/index.html, ./src/main.css and ./src/main.js)

  4. Re-build the template by running gulp

License

Developed with love @ Zeyon in Munich, Germany.

Copyright © 2014 Peter-Christoph Haider

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.