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 55K
  • Win 27K
  • OS X 18K
  • Linux 9K
May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7
Windows 9 20 17 4 8 8 20 14 8 9 14 7 14 15 10 19 15 9 10 15 8 6 14 12 10 12 7 12 15 16 11 10 7 10 16 27 25 12 8 7 16 28 14 20 25 9
OS X 8 7 9 1 4 3 7 9 11 9 1 8 13 7 8 7 4 1 4 6 8 8 5 4 4 1 12 11 11 6 6 1 6 5 11 11 10 10 3 6 5 7 3 7 7 7
Linux 6 9 5 5 4 5 5 7 5 3 4 2 5 11 5 7 6 3 2 3 3 3 8 1 4 3 5 5 4 1 7 1 2 6 6 5 6 1 7 2 2 10 8 4 2 3

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.