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

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.