一直用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~~!