Canvas Markdown Sync · Obsidian plugin documentation

Canvas Markdown Sync documentation

Canvas Markdown Sync Obsidian plugin preview

Convert canvas files into structured Markdown outlines and sync changes back to the canvas.

Canvas Markdown Sync turns any JSON Canvas board into a clean Markdown outline or Map of Content (MOC) note. Groups become Markdown headings, text and file cards become bullet items, and directed edges become indented child bullets or explicit cross-group references. Your outline lives inside a managed section so you can refresh it in one click without losing your own commentary, frontmatter, or tags.

Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.

1 Installation

Open Settings, select Community plugins, select Browse, and search for "Canvas Markdown Sync". Select Install, then Enable.

To install manually, copy main.js, manifest.json, and styles.css from the latest release into <vault>/.obsidian/plugins/canvas-markdown-sync/, then reload and enable the plugin. Works on desktop and mobile.

2 Getting started

Quick start

  1. Enable Canvas Markdown Sync in Settings under Community plugins.
  2. Open any .canvas file or right-click it in the file explorer and choose "Generate Markdown outline".
  3. Review the generated outline note and add your own frontmatter or notes outside the managed markers.
  4. After changing the canvas, open the outline note and run "Refresh managed outline section in active note".
  5. With Pro, edit headings or bullets inside the managed section, run "Sync Markdown outline back to canvas", inspect the diff, and apply.

Free commands

Pro commands

3 Features

Structured Markdown outlines from any canvas

Select any .canvas file from the command palette, the file context menu, or the Sync workbench. The converter reads the spatial layout of every group and card, then produces a deterministic outline sorted from top to bottom and left to right.

One-click refresh inside a managed section

Generated outlines sit between &lt;!-- canvas-markdown-sync:start source="path/to/board.canvas" --> and &lt;!-- canvas-markdown-sync:end -->. You can add YAML frontmatter, summaries, callouts, or follow-up tasks above and below those markers. When the board changes, run "Refresh managed outline section in active note" or click Refresh in the workbench. The plugin updates only the managed block through atomic vault.process writes and leaves everything outside the markers untouched.

Bi-directional Markdown-to-canvas sync with dry-run diff preview (Pro)

With Pro, you can edit headings, update card labels, add new indented bullets, or prune obsolete items directly inside the managed Markdown section. Run "Sync Markdown outline back to canvas" to open the dry-run diff preview modal. The preview lists every added, renamed, or removed group, card, and edge before touching disk. Unchanged cards keep their exact coordinates and dimensions. Confirming the diff writes the updated .canvas file atomically via vault.process and stores a pre-sync snapshot so "Undo last canvas sync" restores the exact previous file in one click.

Auto-layout engine and batch folder MOC sync (Pro)

New cards added from Markdown or messy boards benefit from three built-in layout modes. Tree arranges connected cards in breadth-first columns following edge direction. Grid packs cards into balanced rows and columns. Swimlane organizes cards into parallel vertical lanes per group and resizes every group frame to fit its members.

When a project spans multiple boards, run "Batch sync canvases in folder" to scan a chosen vault folder, generate or refresh one outline note per canvas, and maintain a folder index MOC linking every generated outline.

Sync workbench and clear settings

Open "Open sync workbench" from the command palette to run free generation and refresh actions, pick a layout mode, preview diffs, run batch folder sync, or undo the last write. Everything runs locally inside your vault.

4 Commands

Open the command palette and type the plugin name to see these commands. You can give each one a hotkey in Settings, Hotkeys.

Command Command id
Generate Markdown outline from canvas canvas-markdown-sync:generate-outline
Refresh managed outline section in active note canvas-markdown-sync:refresh-managed-section
Open sync workbench canvas-markdown-sync:open-sync-workbench
Sync Markdown outline back to canvas canvas-markdown-sync:sync-outline-to-canvas
Auto-layout canvas nodes canvas-markdown-sync:auto-layout-canvas
Batch sync canvases in folder canvas-markdown-sync:batch-sync-folder
Undo last canvas sync canvas-markdown-sync:undo-last-canvas-sync

5 Settings

Outline generation

Bi-directional sync and layout (Pro)

6 Privacy, payment and network

The core features are free. Pro features need a GitHub Sponsors sponsorship of theluckystrike: $5 a month or more, or $15 once. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply. Your notes stay readable and editable with or without Pro.

One payment turns on Pro in every NoteMods plugin.

GitHub handles the payment. Sponsor at https://github.com/sponsors/theluckystrike/sponsorships?tier_id=666162&frequency=one-time&metadata_source=canvas-markdown-sync. You need no account for the free features. Pro needs the GitHub account that sponsors.

Until you select "Sign in with GitHub" in the settings, Canvas Markdown Sync makes no network requests. Sign in uses the GitHub device flow. Canvas Markdown Sync sends its public client ID and the scope read:user to https://github.com/login/device/code and shows you a code. While you enter the code at https://github.com/login/device, it asks https://github.com/login/oauth/access_token every few seconds to check the sign-in status. The scope permits profile reads only. GitHub needs this access to show the sponsorship tier. It grants no repository scope and no write access.

After sign in, Canvas Markdown Sync sends one query to https://api.github.com/graphql. It checks if the signed-in account sponsors theluckystrike. It asks for the tier and the total payment to theluckystrike. The plugin reuses a successful check for 7 days. Failed checks can retry after 6 hours. Select Refresh to request an earlier check. It sends no note content, file names or other vault data, and it has no telemetry.

After a successful check, Pro can work offline for up to 14 days. Sign out or a negative sponsorship answer turns Pro off. The plugin stores the GitHub token through the secret storage API of Obsidian. It does not put the token in its saved settings or its local sponsorship data. The local storage of this device keeps your GitHub login, the tier and the time of the last check. Sign out clears the token. You can also revoke the access in your GitHub settings, under Applications.

7 Questions and answers

Does generating an outline change my canvas file?

No. Generating and refreshing Markdown outlines are strictly read-only on the .canvas file. The plugin writes to a .canvas file only when you confirm a Pro diff preview, run Pro auto-layout, or trigger Pro undo.

Will refreshing overwrite my own notes in the MOC?

No. Only the lines between the managed start and end markers are replaced. YAML frontmatter, custom headings, backlinks, and paragraphs outside those markers stay intact.

What happens if my canvas has cycles or cross-group arrows?

The traversal tracks ancestor nodes and group boundaries. When an edge points to a card in another group or back to an ancestor, the outline emits an explicit -> Target reference bullet instead of duplicating subtrees or looping.

Can I undo a bi-directional sync?

Yes. Every Pro canvas write saves the exact previous JSON Canvas text in the session undo stack before calling vault.process. Run "Undo last canvas sync" to restore it atomically.

8 Support

Plugin page: canvas-markdown-sync.

Report bugs and ask for features in the GitHub issues of this repository. Include your Obsidian version and a small sample .canvas file.

9 License

MIT

Canvas Markdown Sync · Obsidian plugin documentation