Install package control:
https://packagecontrol.io/installation#st2
Install MarkdownEditing
http://lucifr.com/2012/07/12/markdownediting-for-sublime-text-2/
Markdown preview
Follow this link for markdown preview:
https://github.com/revolunet/sublimetext-markdown-preview
Using Package Control (Recommended)
For all Sublime Text 2/3 users we recommend install via Package Control.
Install Package Control if you haven't yet.
Use cmd+shift+P then Package Control: Install Package
Look for Markdown Preview and install it.
To preview :
optionally select some of your markdown for conversion
use cmd+shift+P then Markdown Preview to show the follow commands (you will be prompted to select which parser you prefer):
Markdown Preview: Preview in Browser
Markdown Preview: Export HTML in Sublime Text
Markdown Preview: Copy to Clipboard
Markdown Preview: Open Markdown Cheat sheet
or bind some key in your user key binding, using a line like this one: { "keys": ["alt+m"], "command": "markdown_preview", "args": {"target": "browser", "parser":"markdown"} }, for a specific parser and target or { "keys": ["alt+m"], "command": "markdown_preview_select", "args": {"target": "browser"} }, to bring up the quick panel to select enabled parsers for a given target.
once converted a first time, the output HTML will be updated on each file save (with LiveReload plugin)
Note:
If you want to set the keymap, just " preference> package setting> key bindings - user, and note to use the argument as above.
Then it is really convenient for you to use.
没有评论:
发表评论