Skip to content

cod7ce/sublimetext-markdown-preview

 
 

Repository files navigation

Sublime Text 2 MarkDown preview

A simple ST2 plugin to help you preview your markdown files quickly in you web browser.

You can use builtin python-markdown2 parser (default) or use the github markdown API for the conversion (edit your settings to select it).

If you have the ST2 LiveReload plugin, your browser will autorefresh the display when you save your file :)

NOTE: If you choose the GitHub API for conversion (set parser: github in your settings), your code will be sent through https to github for live conversion. You'll have Github flavored markdown, syntax highlighting and EMOJI support for free ❤️ :octocat: 🎁

LINUX users: If you want to use GitHub API for conversion, you'll need to have a custom Python install that includes python-ssl as its not built in the Sublime Text 2 Linux package. see @dusteye comment : revolunet#27 (comment).

Features :

  • Markdown conversion via builtin Markdown Parser (python-markdown2) or via Github API : just choose in your settings.
  • Browser preview auto reload on save if you have the ST2 LiveReload plugin installed.
  • Builtin parser : Support TOC, footnotes markdown extensions

Installation :

  • you should use sublime package manager
  • use cmd+shift+P then Package Control: Install Package
  • look for Markdown Preview and install it.

Usage :

  • use cmd+shift+P then Markdown Preview to launch a preview
  • or bind some key in your user key binding, using a line like this one: { "keys": ["alt+m"], "command": "markdown_preview", "args": {"target": "browser"} },
  • once converted a first time, the output HTML will be updated on each file save (with LiveReload plugin)

Uses :

Licence :

The code is available at github https://github.com/revolunet/sublimetext-markdown-preview under MIT licence : http://revolunet.mit-license.org

About

markdown preview plugin for sublime text 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published