What's new
Local images render in embed mode
Markdown opened via Edit with MarDoc now renders relative image references (, ./foo.png, ../assets/logo.png) from disk. The extension reads the bytes via a new file:read-image postMessage bridge and hands back a base64 data URI. Previously these showed as broken images because the browser has no filesystem access.
Multi-root workspace correctness
Fixes a class of bugs triggered by having multiple repos open in one VS Code window. The extension was reading owner/repo, the relative file path, and image paths from workspaceFolders[0] — which is almost always the wrong repo. It now resolves each of those against the git root of the file you actually opened:
- The workspace folder VS Code says contains the file
- Or the nearest
.gitancestor if the file sits outside all workspace folders - Falling back to the first workspace folder only for the bare
MarDoc: Opencommand (no file context)
Configurable app URL
New mardoc.appUrl setting. Default is https://mardoc.app. Point it at http://localhost:3000 to develop against a local npm run dev server without rebuilding the extension.
Install
Option A — download and install from the command line:
- Download
mardoc-0.1.4.vsixfrom the Assets section below. - Run:
code --install-extension ~/Downloads/mardoc-0.1.4.vsix --force - Reload the VS Code window (
Cmd+Shift+P→ Developer: Reload Window).
Option B — install from VS Code UI:
- Download
mardoc-0.1.4.vsixfrom the Assets section below. - Open the Extensions view (
Cmd+Shift+X). - Click the
...menu in the Extensions panel header → Install from VSIX… - Select the downloaded file.
- Reload the window.
To confirm the install, open the Extensions view and find MarDoc — it should show version 0.1.4.
Companion app release
This release expects the app-side bridge that ships on https://mardoc.app from mardoc-io.github.io#95. If you're pointing mardoc.appUrl at a custom URL, make sure that server is on a build that includes the file:read-image protocol and the __local__/ gate in rewriteImageUrls.