A Sublime Text 3 package for rendering markdown in a browser - updates and serves HTML as you type!
The Asciidoctor RubyGem is a prerequisite for .adoc files:
gem install asciidoctor
Installing through Package Control
Installing via Package Control will keep OmniMarkupPreviewer up-to-date automatically.
Once Package Control is installed, restart Sublime Text.
- Open the Command Palette (Ctrl+Shift+P on Windows and Linux. ⌘+⇧+P on OS X).
- Type "Add" and select "Add Repository".
- Paste the repository URL https://github.com/bsmith-n4/N4-MarkupPreview into the form at the bottom of the window.
- Open the Command Palette, type "Install" and select "Package Control: Install Package".
- Type "N4" and select "N4-MarkupPreview" from list.
Clone this repo into your Sublime Text Packages directory:
git clone git://github.com/bsmith-n4/N4-MarkupPreview.git
The 'Packages' directory for Sublime Text 3 is located at:
- Windows:
%APPDATA%\Sublime Text 3\Packages\ - Linux:
~/.config/sublime-text-3/Packages/ - OS X:
~/Library/Application Support/Sublime Text 3/Packages/
OSX:
- ⌘+⌥+O: Preview Markup in Browser.
- ⌘+⌥+X: Export Markup as HTML.
- Ctrl+Alt+C: Copy Markup as HTML.
Windows, Linux:
- Ctrl+Alt+O: Preview Markup in Browser.
- Ctrl+Alt+X: Export Markup as HTML.
- Ctrl+Alt+C: Copy Markup as HTML.
The previewer has builtin support for the following markups:
- Markdown
- reStructuredText
- WikiCreole
- Textile
- Pod (Requires Perl >=
5.10and can be found inPATH, if the perl version <5.10,Pod::Simpleshould be installed fromCPAN.) - RDoc (Requires
rubyin yourPATH) - Org Mode (Requires
ruby, and gemorg-rubyshould be installed) - MediaWiki (Requires
ruby, as well as gemwikicloth) - AsciiDoc (Requires
ruby, as well as gemasciidoctor) - Literate Haskell
Based on OmniMarkupPreviewer by Timon Wong