Skip to content

Type to search extensions

Markdown Image Path Completion

v0.1.1

Completes relative paths to image files inside Markdown ![]() links.

Updated 4 weeks ago
278 downloads 0 stars Repository ↗

md-image-path-lsp

日本語

A Language Server that completes Markdown image paths against the real files in your workspace

npm version license


A Language Server that completes relative paths to image files in your workspace inside Markdown ![alt](...) syntax, plus a Zed extension and a VS Code extension that use it.

Two path resolution modes

Works naturally both in frameworks that serve public/ as static assets (Next.js, Vite, etc.) and in plain Markdown editing with no framework at all.

Framework environment with a public/ directory (Next.js / Vite, etc.)

Treats public/ as the web root and completes absolute-style paths such as /images/logo.png.

Completion in an environment with public/

Plain Markdown editing with no public/ directory

Completes paths relative to the file being edited (e.g. ../images/logo.png). Suited for blog posts, READMEs, and anything viewed as a raw file (Obsidian, GitHub, static file viewers).

Completion in an environment without public/

Structure

.
├── server/          The Language Server itself (npm: md-image-path-lsp)
├── clients/zed/     Zed extension (fetches server/ from npm automatically)
└── clients/vscode/  VS Code extension (bundles server/ as a dependency)

server/ is editor-agnostic and can be used from any LSP client via npx md-image-path-lsp --stdio, not just Zed and VS Code. See each directory's README for details.

Editor support

Editor Status
Zed Published in the Zed extension registry
Neovim / Helix / Emacs (eglot), etc. Works with any generic LSP client config that invokes npx md-image-path-lsp --stdio directly
VS Code Published on the Marketplace

Released under the MIT License

ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated