Skip to content

Instantly share code, notes, and snippets.

@corydeppen
Forked from dvhthomas/Markdown.sublime-build
Created November 22, 2011 00:24
Show Gist options
  • Save corydeppen/1384470 to your computer and use it in GitHub Desktop.
Save corydeppen/1384470 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.

  • For more info, see the Build Systems documentation for Sublime Text 2.

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