This is a Sublime Text plugin for building markdown into html and view it in browser.
- Total 13K
- Win 6K
- OS X 5K
- Linux 2K
|Mar 22||Mar 21||Mar 20||Mar 19||Mar 18||Mar 17||Mar 16||Mar 15||Mar 14||Mar 13||Mar 12||Mar 11||Mar 10||Mar 9||Mar 8||Mar 7||Mar 6||Mar 5||Mar 4||Mar 3||Mar 2||Mar 1||Feb 28||Feb 27||Feb 26||Feb 25||Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6|
MarkdownBuild (version 0.4.0)
This is a Sublime Text plugin for building markdown into html and open it in browser.
Install using Package Control (Recommanded)
- I guess most Sublime Text 2 users are using Sublime Package Control. If not, please install it from here http://wbond.net/sublime_packages/package_control
- Go to Preference > Package Control, and Choose “Install Package”
- Choose the package named “MarkdownBuild” to install it
- Download the repo
- Copy everything in the repo to a folder named “MarkdownBuild” under the package folder of SublimeText 2 (create it if it doesn't exist)
Originally this plugin is named “SublimeMarkdown” which features automatic bullet points, numbered lists etc. Now the bullet points functionality is extracted to a separated plugin named “SublimeBullet” https://github.com/erinata/SublimeBullet
Press Ctrl+b to build the markdown file to html and view it in the browser. It used Python-markdown to build the html file but you do not need to have Python installed in order to use this plugin. This package utilizes the Python inside Sublime Text to get the job done.
I also include a Markdown.tmLanguage file so the markdown files' syntax should be highlighted. It works well with the theme “SunBurst” but it should work for other themes too.
You can customize the behaviour of MarkdownBuild in that MarkdownBuild.sublime-settings file.
- output_html - set it to true if you want to have an html file generated at the same folder of your markdown file (default: false)
- use_css - set it to false if you do not want to use css in the generated file (default: true)
- charset - the charset in the meta tag of html, (default: “UTF-8”)
Building documents other than Markdown
This project only target at building Markdown. But it can be modified to support other formats.
For textile support please see Xkeeper's SublimeTextileBuild https://github.com/Xkeeper/SublimeTextileBuild
Please fork this project if you want it to support other document formats. In most case the only part of code that you need to change is the line
md = markdown_python.markdown(contents)
in the file
MarkdownBuild.py. Just change it to the parser you likem, this plugin will build the html and show it in the browser accordingly.
Of course you can rename the files, commands, or css …… etc. Xkeeper's SublimeTextileBuild https://github.com/Xkeeper/SublimeTextileBuild is a good example.
This package works on Windows, OSX, and Linux
Copyright © 2012 Tom Lam. MIT License.