Skip to content

ZensicalにMarkdownlintをインストールする

ZedMarkdownlintをインストールする手順をメモしておきます。

検証環境

対象 バージョン
macOS Tahoe 26.5.1
Zed 1.8.2
markdownlint-cli2 0.22.1

markdownlint-cli2のインストール

内部的にmarkdownlint-cli2を利用する為、Homebrewでインストールします。

brew install markdownlint-cli2

Markdownlint拡張のインストール

ZedへMarkdownlint拡張をインストールします。

image

この拡張機能からmarkdownlint-cli2を利用して構文チェックするように設定します。

settings.json
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
  "buffer_font_family": "UDEV Gothic NFLG",
  "buffer_font_size": 18,
  "edit_predictions": {
    "provider": "copilot",
  },
  "languages": {
    "Markdown": {
      "format_on_save": "on",
      "formatter": {
        "external": {
          "command": "markdownlint-cli2",
          "arguments": ["--format", "-"],
        },
      },
    },
  },
  "project_panel": {
    "dock": "left",
    "auto_reveal_entries": true,
    "scrollbar": {
      "show": "auto",
    },
  },
  "restore_on_startup": "last_session",
  "theme": {
    "mode": "system",
    "light": "One Light",
    "dark": "One Dark",
  },
  "ui_font_size": 18,
}