Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>graphite.mdNew to Visual Studio Code? Get it now.
graphite.md

graphite.md

rogue-designs

|
7 installs
| (0) | Free
A richer Markdown preview: collapsible sections, a git-graph style outline, checklists, math, and diagrams.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

graphite.md

A Markdown preview for people who read a lot of Markdown: collapsible sections, a git-graph style outline, checklists, math, and diagrams — in a dark, distraction-free theme.

Documentation · Marketplace · Issues

The graphite.md preview showing an engineering RFC: rendered markdown on the left, and beside it the outline panel drawing the document's structure as a connected graph.

Features

Collapsible sections. Every heading in your document collapses and expands independently. Long specs and READMEs stop being one giant scroll.

A git-graph outline. The right-hand "On this page" pane shows your document's structure as a connected graph — not a flat list — split into three views:

  • Content — your heading structure, nested exactly as it is in the doc
  • Tables — every table in the document, jump straight to any of them
  • Diagrams — every diagram, same idea

Only one view is open at a time. Click any node to soft-scroll to that part of the document; the outline highlights where you are as you scroll.

The preview scrolled to a deeply nested heading. In the outline panel, the path from Content down to the current section is drawn in accent, and the section itself is highlighted.

Checklists. Write - [ ] and - [x] as usual. In the preview they render as real, clickable checkboxes — checking one off edits your markdown file directly, so your task list and your document never drift apart.

A split view of a runbook: markdown source on the left, the same pre-flight section rendered on the right with four of six checkboxes ticked. Clicking a box in the preview rewrites the matching line in the file.

Math. Inline ($...$) and block ($$...$$) math, rendered with KaTeX.

Diagrams. Fenced ```mermaid code blocks render as live diagrams.

Two captures side by side. On the left, a systems paper rendering inline and displayed math alongside a markdown table. On the right, a mermaid fenced code block rendered as a flow diagram of a coordinator fanning out to five replicas.

Images. ![alt](https://github.com/ROG-stdioh/graphite-md/raw/HEAD/diagram.png) renders, resolved against the document it is written in — so a file in a subfolder finds the pictures beside it, and one that reaches up a level works whenever you have that folder open. Images from the network are a separate matter, and off by default; see Settings.

Callouts. Blockquotes (>) get a distinct treatment so notes and asides stand out from body text.

Rich inline syntax. Superscript (^2^), subscript (~2~), underline (++text++), highlighting (==text==), strikethrough (~~text~~), and footnotes ([^1]) all render natively.

A document exercising inline syntax: subscript, superscript, underline, highlight and strikethrough all rendered in place, with a footnote marker in the body and its definition listed at the foot of the page.

Links that go where you meant them to. A relative link opens the file it points at, resolved against the document you're previewing — the same way VS Code's own Markdown preview resolves it. Absolute URLs open in your browser. And a bare filename stays a filename: README.md in a sentence is not turned into a link to http://README.md, which matters because plenty of country domains (.md, .sh, .rs, .pl, .so, .cc) are also file extensions.

Syntax highlighting. Fenced code blocks are highlighted with highlight.js, tinted to match the graphite theme.

Tunable reading width. Set it once in settings.json:

"graphiteMd.contentWidth": 60

Usage

  1. Open a .md file.
  2. Run graphite.md: Open Preview to the Side from the Command Palette, or press Ctrl+K V (Cmd+K V on macOS).
  3. The preview updates live as you type.

Settings

Setting Type Default Description
graphiteMd.contentWidth number (40–100) 60 Width of the reading column, as a percentage of the available preview pane width.
graphiteMd.remoteImages boolean false Load images from the network. Off by default — images stored beside the document always work, and turning this on lets any document you preview make requests to servers its author picked.

Requirements

VS Code 1.134.0 or later. No other setup — everything the preview needs (KaTeX, Mermaid) ships bundled with the extension.

Known limitations

  • Images from the network (https://…) don't load unless you turn on graphiteMd.remoteImages. That default is deliberate: previewing a file shouldn't quietly tell a stranger's server that you opened it. Images stored beside the document are unaffected by the setting.
  • An image referenced by an absolute path — C:\pics\x.png, or a file:// URL — isn't loaded. The preview only resolves paths written relative to the document, and leaves anything absolute alone.
  • An image outside the folder you have open doesn't load, and you get an empty box rather than an error. Open a workspace of docs/ by itself, preview docs/setup.md, and ![logo](https://github.com/ROG-stdioh/graphite-md/raw/HEAD/../images/logo.png) stays blank — images/ isn't in the folder you opened. Open the parent that holds both docs/ and images/, and the picture loads. VS Code's built-in Markdown preview draws the line in the same place.
  • Merged-cell tables (rowspan / colspan) aren't supported yet — a syntax for them is still being designed. (#8)
  • The preview doesn't follow the editor cursor, or the editor the preview. Re-rendering after an edit does preserve your scroll position, so you aren't thrown back to the top.
  • The outline panel is a fixed width and can't be collapsed yet. (#3)

Contributing

See DEVELOPMENT.md for build instructions and an overview of how the extension is put together.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft