Skip to content

Instantly share code, notes, and snippets.

@flyfire
Forked from dvhthomas/Markdown.sublime-build
Created March 31, 2012 03:43
Show Gist options
  • Save flyfire/2259060 to your computer and use it in GitHub Desktop.
Save flyfire/2259060 to your computer and use it in GitHub Desktop.
Pandoc powered Sublime Text 2 build provider for Markdown files: HTML the easy way

Using the build provider

  • Install Pandoc on your system. I'm assuming that you have the pandoc.exe on your PATH on Windows.

  • Save the Markdown.sublime-build file to your Packages folder. On my Windows 7 system this is:

    C:\Users\USERNAME\AppData\Roaming\Sublime Text 2\Packages\Markdown

  • Open a Mardown file (with *.md file extension) and hit F7.

{
"cmd": ["pandoc.exe", "--to=html", "--output=$file.html", "$file"],
"selector": "source.md"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment