sublime markdown 设置

时间:2023-03-09 04:12:01
sublime markdown 设置

安装Markdown Preview

修改用户配置文件(代码高亮):

{
"enable_highlight": true
}

快捷键:

ctrl+b

生成html文档

安装OmniMarkupPreviewe

如果出现这种错误:

Error:  Not Found

Sorry, the requested URL 'http://127.0.0.1:51004/view/28' caused an error:

'buffer_id(28) is not valid (closed or unsupported file format)'

**NOTE:** If you run multiple instances of Sublime Text, you may want to adjust
the `server_port` option in order to get this plugin work again.

修改用户配置文件:

Sublime Text > Preferences > Package Settings > OmniMarkupPreviewer > Settings - User

{
"renderer_options-MarkdownRenderer": {
"extensions": ["tables", "fenced_code", "codehilite"]
}
}

这样通过快捷键直接在浏览器打开:

之后可以使用ctrl+alt+o在浏览器中预览。