Sublime Text 3 打造markdown编辑器

编辑插件

Markdown Editing

预览插件

Markdown Preview

这个插件不能实时预览,但可以设置快捷键在浏览器中预览,在Preferences->Key Binding设置里添加以下代码

{ "keys": ["alt+m"], "command": "markdown_preview", "args": {"target": "browser", "parser":"markdown"} },

在编辑markdown文件时可以通过按alt+m快速在浏览器中预览,虽然不如实时预览方便,但markdown的格式很简单,经常用的人并不需要频繁的预览,设计markdown的初衷本就是为了让编辑安心码字,不用过多考虑格式的问题.

MarkdownLivePreview

这个插件可以实现实时预览,在Preferences->Package Setting>MarkdownLivePreview>Settings的user配置文件,设置在打开时同步预览:

// Your settings for MarkdownLivePreview. See the default file to see the different options. 
{
    // As soon as you open a markdown file, it opens the window preview
    "markdown_live_preview_on_open": true,

    // If an image starts with one of those strings, then it will be loaded from internet
    "load_from_internet_when_starts": ["http://", "https://"],

    // When the preview is opened, the markdown file is closed in the origin window and reopend in
    // the preview window. If this option is set to 'true', then the markdown file will NOT be
    // closed in the origin window
    "keep_open_when_opening_preview": false,

    // Choose what to do with YAML/TOML (---/+++ respectively) headers
    // Valid values: "wrap_in_pre", "remove".
    "header_action": "wrap_in_pre",

    // Wait at least the specified *seconds* before updating the preview.
    "update_preview_every": 0
}

这个插件有可时候可能并不work,所以推荐第一个Markdown Preview。

你可能感兴趣的:(Sublime,Text,3)