• Stars
    star
    499
  • Rank 87,715 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 12 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sublime Text 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.

OmniMarkupPreviewer

Description

OmniMarkupPreviewer is a plugin for both Sublime Text 2 and Sublime Text 3 that preview markups in web browsers. OmniMarkupPreviewer renders markups into htmls and send it to web browser in the backgound, which enables a live preview. Besides, OmniMarkupPreviewer provide support for exporting result to html file as well.

OmniMarkupPreviewer has builtin support following markups:

  • Markdown
  • reStructuredText
  • WikiCreole
  • Textile
  • Pod (Requires Perl >= 5.10 and can be found in PATH, if the perl version < 5.10, Pod::Simple should be installed from CPAN.)
  • RDoc (Requires ruby in your PATH)
  • Org Mode (Requires ruby, and gem org-ruby should be installed)
  • MediaWiki (Requires ruby, as well as gem wikicloth)
  • AsciiDoc (Requires ruby, as well as gem asciidoctor)
  • Literate Haskell

Donation

If you find my work useful, please consider buying me a cup of coffee, all donations are much appreciated :)

Donate via PayPal

Installation

With the Package Control plugin

The easiest way to install OmniMarkupPreviewer is through Package Control.

Once you have Package Control installed, restart Sublime Text.

  1. Bring up the Command Palette (Ctrl+Shift+P on Windows and Linux. ++P on OS X).
  2. Type "Install" and select "Package Control: Install Package".
  3. Select "OmniMarkupPreviewer" from list.

The advantage of using Package Control is that it will keep OmniMarkupPreviewer up to date automatically.

Manual Install

Without Git: Download the latest source code, and extract to the Packages directory.

With Git: Type the following command in your Sublime Text Packages directory:

git clone git://github.com/timonwong/OmniMarkupPreviewer.git

The "Packages" directory for Sublime Text 2 is located at:

  • Windows: %APPDATA%\Sublime Text 2\Packages\
  • Linux: ~/.config/sublime-text-2/Packages/
  • OS X: ~/Library/Application Support/Sublime Text 2/Packages/

And for the Sublime Text 3:

  • Windows: %APPDATA%\Sublime Text 3\Packages\
  • Linux: ~/.config/sublime-text-3/Packages/
  • OS X: ~/Library/Application Support/Sublime Text 3/Packages/

Usage

Key Bindings

The default key bindings:

Windows, Linux:

  • Ctrl+Alt+O: Preview Markup in Browser.
  • Ctrl+Alt+X: Export Markup as HTML.
  • Ctrl+Alt+C: Copy Markup as HTML.

OSX:

  • ++O: Preview Markup in Browser.
  • ++X: Export Markup as HTML.
  • Ctrl+Alt+C: Copy Markup as HTML.

Command Palette

Available OmniMarkupPreviewer commands in the command palette:

  • OmniMarkupPreviewer: Preview Current Markup in Browser
  • OmniMarkupPreviewer: Export Current Markup as HTML
  • OmniMarkupPreviewer: Empty Cache

NOTE Command will not be available (greyed out) if current file syntax (or filename) doesn't match any of OmniMarkupPreviewer renderers.

What's New

For a complete list of changes, see CHANGELOG.md

v3.0.0 (02/28/2015)

  • Use new flat github style (old style renamed to github-v1).
  • Upgrade pygments library to v2.0.2, with more lexers.
  • Upgrade Python-Markdown package to v2.4.1 final.
  • Add .mmd file extension support (MultiMarkdown).
  • Upgrade jQuery to 2.1.3 (Say good bye to IE8).
  • server_host setting is now taken into account when launching preview in browser.

v2.0.9 (08/02/2014)

  • Add syntax highlighting support for reStructureText.
  • Prefer to use xdg-open under linux environments.

v2.0.8 (04/15/2014)

  • Fix Sublime Text 2 compatibility (crash).

v2.0.7 (04/14/2014)

  • Fix unreliable default setting overriding, which confuses a lot of users when customizing their settings.
  • Prevent preview from the console, which will simply lead to crash.

v2.0.6 (01/27/2014)

  • Fix Sublime Text 2 compatibility (markdown).

v2.0.5 (01/24/2014)

  • MathJax library is now bundled directly instead of on demand downloading.
  • Python-Markdown module now upgraded to v2.4.
  • Fix incompatibility when using Sublime Text 3 under XFCE.

v2.0.4 (08/10/2013)

  • Fix ruby gems loading in OSX (Required by RDoc, AsciiDoc, Org Mode and MediaWiki).
  • Add AsciiDoc syntax support.
  • Ensure default setting for export_options when not available.

v2.0.3 (07/18/2013)

  • Fix html exporting when file contains images in Sublime Text 3.
  • Fix smart_strong and meta_data extention name for markdown.

v2.0.2 (06/17/2013)

  • Update cherrypy server, add detail information if socket could not be created.
  • Add support for file URIs in images path.

v2.0.1 (05/12/2013)

  • Strip YAML frontmatter for Markdown files automatically.
  • Check syntax name as well as filename extension for MediaWiki files.

v2.0 (03/31/2013)

  • Added support for Org Mode (Requires ruby, and gem org-ruby should be installed).
  • Added support for MediaWiki (Requires ruby, as well as gem wikicloth).
  • Added support for AsciiDoc (Requires ruby, as well as gem asciidoctor).
  • Reviving view (redirecting to the new location) automatically after reconnected.
  • Prevent Package Control for Sublime Text 3 installing this package as .sublime-package (zip archive).
  • Fixed broken ignored_renderer setting.
  • Improved Sublime Text 3 compatibility.

v1.20 (03/15/2013)

  • Add support Sublime Text 3 (Experimental).
  • Add new context command Copy Markup as HTML.
  • Remove unused command Sweep Cache (Remove Unused).
  • Auto scroll now works correctly for documents contain images and MathJax equations.

v1.12 (03/13/2013)

  • Renderes are now loaded asynchronously on startup (faster Sublime Text 2 startup).
  • Add litcoffee support.

License

This plugin released under MIT License:

Copyright © 2012 - 2015 Timon Wong

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Donors

DONORS.md

More Repositories

1

prometheus-webhook-dingtalk

DingTalk integration for Prometheus Alertmanager
Go
798
star
2

SublimeAStyleFormatter

SublimeAStyleFormatter is a code formatter/beautifier for Sublime Text 2 & 3. It provides ability to format C/C++/C#/Java files.
Python
280
star
3

uwsgi_exporter

uWSGI metrics exporter for prometheus.io
Go
66
star
4

cyksuid

Fast Python implementation of KSUID (K-Sortable Globally Unique IDs) using Cython
Python
37
star
5

ding2wechat

钉钉机器人到企业微信机器人转发器
Go
30
star
6

sxsdiff

Side by side diff for python
Python
17
star
7

loggercheck

A linter for logr,klog,zap that can also works with golangci-lint as a plugin
Go
13
star
8

ScalaFormat

Yet another Scala code formatter for Sublime Text.
Python
13
star
9

elasticsearch-discovery-ecs

Aliyun ECS unicast discovery plugin for Elasticsearch
Java
9
star
10

astyle-mirror

[Unofficial] mirror of astyle (http://astyle.sourceforge.net)
C++
8
star
11

pyastyle

astyle library as a python module
Python
8
star
12

libao

[Mirror] Cross Platform Audio Output Library http://xiph.org/ao/
C
8
star
13

vscode-ansible-autocomplete

TypeScript
6
star
14

smart-table-improved

Collection of useful widgets for the smart-table
JavaScript
6
star
15

dbr

Additions to Go's database/sql for super fast performance and convenience. (fork of gocraft/dbr, Go 1.8+)
Go
6
star
16

python27-rpm

Shell
5
star
17

jaeger-client-python-contrib

Python
5
star
18

SublimeAlternate

SublimeAlternate is a simple working in progress plugin for Sublime Text 2. It provides simple ways to alternate files (like swithing .c to .h) by keyboard shortcuts quickly.
Python
4
star
19

todolint

Go
3
star
20

k8sutils

Go
2
star
21

webpack-angular-gettext

TypeScript
2
star
22

grpc_with_gevent_will_screw_you

Python
1
star
23

wasm-limit-size-filter

Proxy-Wasm Request/Response Size Limit Filter
Rust
1
star
24

undisposition-addon

Removes Content-Disposition: attachment HTTP header to allow view files instead of downloading them. Extension icon acts as toggle.
TypeScript
1
star
25

foo_uie_wsh_panel_mod

Automatically exported from code.google.com/p/foo-wsh-panel-mod
C++
1
star
26

alauda-pipeline-cover

Go
1
star
27

dotfiles

dotfiles managed by chezmoi
Shell
1
star
28

vagrant-rabbit-clusters

Shell
1
star
29

logrlint

(Archived) Please use https://github.com/timonwong/loggercheck instead
Go
1
star