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

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.