Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
3
Help us understand the problem. What is going on with this article?

More than 1 year has passed since last update.

@yuu-eguci

OmniMarkupPreviewer 404 Not Found 解決法

Error: 404 Not Found

Sublime Text3 愛好家、ならびに Markdown 愛好家です。 OmniMarkupPreview の Preview Current Markup in Browser 機能は最高ですが Error: 404 Not Found が出ることがあります。

1.png

Error: 404 Not Found
Sorry, the requested URL 'http://127.0.0.1:51004/view/27' caused an error:

'buffer_id(27) 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.

解決法

OmniMarkupPreviewer.sublime-settings に markdown ライブラリのエクステンションを書き込みます。

2.png

OmniMarkupPreviewer.sublime-settings
{
    "renderer_options-MarkdownRenderer": {
        "extensions": [
            "markdown.extensions.tables",
            "markdown.extensions.fenced_code",
            "markdown.extensions.codehilite"
        ]
    }
}

↓ Work しました。

3.png

昔の解決法

これはもう使えません。

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

そも OmniMarkupPreviewer とは

Sublime Text3 で Markdown を書きながら、ブラウザでリアルタイムでプレビューを見ることができるパッケージです。すべての Markdown 愛好家に届け!

3
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
3
Help us understand the problem. What is going on with this article?