Skip to content

v0.1.4

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Apr 01:25
41088d5

What's new

Local images render in embed mode

Markdown opened via Edit with MarDoc now renders relative image references (![arch](docs/images/arch.png), ./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:

  1. The workspace folder VS Code says contains the file
  2. Or the nearest .git ancestor if the file sits outside all workspace folders
  3. Falling back to the first workspace folder only for the bare MarDoc: Open command (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:

  1. Download mardoc-0.1.4.vsix from the Assets section below.
  2. Run:
    code --install-extension ~/Downloads/mardoc-0.1.4.vsix --force
    
  3. Reload the VS Code window (Cmd+Shift+PDeveloper: Reload Window).

Option B — install from VS Code UI:

  1. Download mardoc-0.1.4.vsix from the Assets section below.
  2. Open the Extensions view (Cmd+Shift+X).
  3. Click the ... menu in the Extensions panel header → Install from VSIX…
  4. Select the downloaded file.
  5. 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.