GithubHelp home page GithubHelp logo

gableroux / sublimetext-markdown-preview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from revolunet/sublimetext-markdown-preview

0.0 3.0 0.0 583 KB

markdown preview plugin for sublime text 2/3

Python 90.43% CSS 9.57%

sublimetext-markdown-preview's Introduction

Sublime Text 2/3 MarkDown preview

Preview your markdown files quickly in you web browser from sublime text 2/3.

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

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: ๐ŸŽ. If you make more than 60 calls a day, be sure to set your GitHub API key in the settings :)

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. If you use a custom window manager, also be sure to set a BROWSER environnement variable. see @PPvG comments

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
  • CSS overriding if you need
  • YAML support thanks to @tommi
  • Clipboard selection and copy to clipboard thanks to @hexatrope
  • MathJax support : \(\frac{\pi}{2}\) thanks to @bps10

Installation (ST2) :

  • you should use sublime package manager
  • use cmd+shift+P then Package Control: Install Package
  • look for Markdown Preview and install it.
  • OR, Clone or unpack to "Markdown Preview" folder inside "Packages" of your Sublime installation.

Installation (ST3) :

The package manager cannot handle both versions yet so here's how to install the plugin :

  • Clone or unpack to "Markdown Preview" folder inside "Packages" of your Sublime installation.
  • change branch to ST3 with git checkout ST3.

Usage :

  • optionnaly select some of your markdown for conversion
  • 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

sublimetext-markdown-preview's People

Contributors

borian avatar bps10 avatar christianvuerings avatar chronossc avatar curtisgibby avatar danmactough avatar edvandance avatar evanpurkhiser avatar fooforge avatar hoffmannp avatar int3h avatar jaylynch avatar jim0thy avatar jincod avatar jnraine avatar lyrixx avatar microjo avatar qrohlf avatar rdeits avatar revolunet avatar ronjouch avatar sauerbraten avatar scottkellum avatar sdefresne avatar stummjr avatar tommi avatar xpol avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.