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

Markdown HTML Preview

by zeyon ALL

Markdown HTML Preview for Sublime Text 2/3

Details

Installs

  • Total 88K
  • Win 46K
  • Mac 28K
  • Linux 14K
Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22
Windows 3 5 5 5 4 3 1 5 2 0 0 0 0 6 7 10 0 3 8 7 7 11 0 0 9 5 1 2 4 3 4 7 5 2 3 2 7 4 12 6 11 2 8 3 5 7
Mac 0 6 6 3 4 0 0 6 0 0 0 0 1 1 1 2 0 0 5 2 1 1 0 0 5 4 0 1 9 6 1 1 3 0 1 4 2 5 1 3 2 0 2 2 1 2
Linux 1 1 2 0 0 0 0 2 0 0 0 0 0 1 0 1 0 0 3 2 1 1 0 0 1 2 2 0 2 2 0 5 0 2 0 0 1 1 3 0 1 0 2 3 0 1

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.