一直用Sublime Text 写Markdown,在前几天用OmniMarkupPreviewer 来预览文本的时候,Chrome
报了个错误给我:
Error: 404 Not Found
Sorry, the requested URL 'http://127.0.0.1:51004/view/54' caused an error:
'buffer_id(54) 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.
WTF!
然后我试着改了下接口:
{
"server_port": 52333
}
然并卵。
再后来在OmniMarkupPreviewer
的Issues上找到了解决方法。
上面提供了两种方法,我用了第一种解决了问题。
Sublime Text > Preferences > Package Settings > OmniMarkupPreviewer > Settings - User
复制粘贴下面代码保存。
{
"renderer_options-MarkdownRenderer": {
"extensions": ["tables", "fenced_code", "codehilite"]
}
}
成功
Over~~!