
Inkwell Markdown
Edit Markdown directly on the rendered page. Headings, tables, checklists, code and diagrams look finished while you type, and the raw Markdown appears only on the line you are editing.

Designed by sajjadmz · Built with Claude
Features
- Live preview, Obsidian style. Text is shown styled. Move the cursor into a heading, bold word or link and the Markdown symbols appear; move away and they hide again.
- A familiar toolbar and Word-style shortcuts. Bold, italic, lists, headings, links, code blocks and more, with the shortcuts you already know.
- Editable tables. Click a cell and type. A small bar adds, deletes and aligns rows and columns.
- Text colour and highlighter. Six colours that read well in light and dark themes. Stored as small HTML tags that GitHub and Markdown Preview Enhanced also display.
- Mermaid diagrams. Insert a starter flowchart, sequence, timeline, mind map, Gantt, pie or state diagram from the Diagram menu. The diagram redraws as you type.
- Syntax-coloured code blocks for about 100 languages, and clickable checkboxes in task lists.
- 18 page styles from Markdown Preview Enhanced (GitHub, One, Atom, Solarized, Monokai and more), following your VS Code theme by default.
- Safe by design. It edits your file's text directly. See Your file is safe.
Live preview


Tables

Diagrams

Dark theme

Install
In VS Code (no coding needed)
- Open VS Code.
- In the left sidebar, click the Extensions icon (four small squares, one slightly apart). Or use the menu bar: View → Extensions.
- In the search box at the top of that panel, type Inkwell Markdown.
- Click Inkwell Markdown by sajjadmotamed, then click the blue Install button.
- That's it. Open any
.md file and it appears in Inkwell (see How to open a file).
Or install from the VS Code Marketplace page by clicking Install.
Cursor, VSCodium and Windsurf
These editors get extensions from Open VSX. The steps are the same as above: open the Extensions panel, search for Inkwell Markdown, click Install.
From a terminal (for coders)
code --install-extension sajjadmotamed.inkwell-markdown
For Cursor use cursor --install-extension sajjadmotamed.inkwell-markdown.
Build from source
You need Node.js 20 or later.
git clone https://github.com/sajjadmz/inkwell-markdown.git
cd inkwell-markdown
npm ci
npm run package
code --install-extension inkwell-markdown-<version>.vsix
<version> is the number in package.json (for example 0.4.0). To run the tests (they download a copy of VS Code once):
npm test
How to open a file
You don't need to do anything special. Once Inkwell is installed, it is already the default for Markdown files (files ending in .md). Just open one the way you normally would:
- In VS Code's left sidebar (the Explorer, the icon that looks like two sheets of paper), find your Markdown file.
- Click it once. It opens in Inkwell, looking like a formatted document with the toolbar at the top.
If a file opens as plain text instead (for example, the # and ** symbols show everywhere):
- Right-click the file in the left sidebar and choose Open in Inkwell, or
- Right-click the file's tab at the top of the editor and choose Open in Inkwell.

Illustration (a mock-up, not a screenshot).
To see the raw Markdown text again, click the page icon at the far right of Inkwell's toolbar (its tooltip says Open as plain text). To come back, right-click the tab and choose Open in Inkwell.
Keyboard users: Cmd+Shift+V (Mac) or Ctrl+Shift+V (Windows and Linux) switches between Inkwell and plain text. This replaces VS Code's built-in Markdown preview shortcut; that preview is still available from the Command Palette (see below).
What is the "Command Palette"?
Some steps below use the Command Palette. It is VS Code's search box for actions: you type what you want to do, then pick it from a list. To open it:
- Go to the menu bar and click View. On a Mac the menu bar is at the very top of your screen; on Windows and Linux it is at the top of the VS Code window.
- Click Command Palette.... A search box appears at the top-centre of VS Code.
- Type the name of the action (for example
Inkwell). Matching actions appear as you type.
- Click the one you want (or press Enter).
Keyboard shortcut for the same box: Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows and Linux).
Make it (or stop it being) your default Markdown editor
Inkwell is the default straight after installing, so most people never need this section. Use it if you want Markdown files to open as plain text by default, or to switch back.
The simple way
- Open the Command Palette (menu bar: View → Command Palette...).
- Type
Inkwell default.
- Click Inkwell: Toggle open by default.
- A small message appears in the bottom-right corner:
- ON means Markdown files open in Inkwell.
- OFF means they open as plain text.
- Do the same again whenever you want to switch back.
VS Code's own way (works for any file type)
- Open any Markdown file.
- Open the Command Palette (menu bar: View → Command Palette...).
- Type
Reopen Editor With and click View: Reopen Editor With....
- In the list that appears, click Configure default editor for '*.md'....
- Click Inkwell to make it the default, or Text Editor for plain text.

Illustration (a mock-up, not a screenshot). The exact wording can differ slightly between VS Code versions.
For advanced users: what the toggle changes
The setting inkwell.openByDefault shows the current state; change it with the command rather than by hand. Switching OFF adds *.md and *.markdown entries to workbench.editorAssociations; switching ON removes the entries it added.
From left to right:
| Button |
What it does |
| Heading menu |
Heading 1, 2, 3 or normal text |
| B, I, ~~S~~ |
Bold, italic, strikethrough |
| Text colour |
Colour the selected text. The arrow opens six colours and "No colour". |
| Highlighter |
Highlight the selected text. The arrow opens six colours. |
| Inline code, Link |
code formatting and a link |
| Bullets, Numbers, Checklist, Quote |
Lists and block quotes |
| Code block |
Fenced code block. The arrow picks the language. |
| Table |
Insert a 3 × 2 table |
| Diagram ▾ |
Insert a starter Mermaid diagram: flowchart, sequence, timeline, mind map, Gantt, pie or state |
| Horizontal rule |
A divider line |
| Page style |
Choose the look of the page |
| Open as plain text |
Switch this file to VS Code's text editor |
Pressing a formatting button or shortcut a second time removes that formatting, as in Word.
Shortcuts
These work only inside the Inkwell editor (except the first row). Save, undo and redo are VS Code's own.
| Action |
Mac |
Windows / Linux |
| Switch Inkwell / plain text |
Cmd+Shift+V |
Ctrl+Shift+V |
| Bold |
Cmd+B |
Ctrl+B |
| Italic |
Cmd+I |
Ctrl+I |
| Strikethrough |
Cmd+Shift+X |
Ctrl+Shift+X |
| Link |
Cmd+K |
Ctrl+K |
| Inline code |
Cmd+E |
Ctrl+E |
| Bulleted list |
Cmd+Shift+8 |
Ctrl+Shift+8 |
| Numbered list |
Cmd+Shift+7 |
Ctrl+Shift+7 |
| Checklist |
Cmd+Shift+9 |
Ctrl+Shift+9 |
| Quote |
Cmd+Shift+. |
Ctrl+Shift+. |
| Heading 1 / 2 / 3 |
Cmd+Alt+1 / 2 / 3 |
Ctrl+Shift+Alt+1 / 2 / 3 |
| Normal text |
Cmd+Alt+0 |
Ctrl+Shift+Alt+0 |
| Code block |
Cmd+Alt+C |
Ctrl+Shift+Alt+C |
| Highlight (last colour used) |
Cmd+Shift+H |
Ctrl+Shift+H |
| Text colour (last colour used) |
Cmd+Shift+C |
Ctrl+Shift+C |
Why Ctrl+Shift+Alt on Windows and Linux? On many European keyboard layouts, Ctrl+Alt is the same as AltGr, which types characters such as @, { and [. Using Ctrl+Alt for headings would block those characters, so these shortcuts add Shift.
Page styles
Inkwell uses the preview themes of Markdown Preview Enhanced. The default, Auto, picks github-light or github-dark to match your VS Code colour theme. Available styles:
atom-dark, atom-light, atom-material, github, github-dark, github-light, gothic, medium, monokai, newsprint, night, none, one-dark, one-light, solarized-dark, solarized-light, vscode, vue
To choose one, use any of these:
- The Page style button in the toolbar.
- The Command Palette: Inkwell: Choose page style.
- The setting
inkwell.previewTheme (for example one-dark.css, or auto).
Your file is safe
Inkwell edits your file's text directly. When you type, only the characters you change are sent to VS Code, never a rewritten copy of the whole file, so spacing, line endings and anything Inkwell does not display stay exactly as they were. Opening a file and closing it again does not touch it.
VS Code does the saving and undo, so Save, Undo, Redo, dirty markers and Local History work as in any other editor. The behaviour is covered by more than 150 automated tests that run on macOS, Windows and Linux on every change.
Updates
Install from a Marketplace and updates arrive automatically. VS Code installs a new version in the background; it takes effect after you click Restart Extensions in the prompt, or on your next launch.
Limitations
- Tables inside lists or quotes stay as raw Markdown text.
- No maths (LaTeX) rendering.
- Not available in the browser (vscode.dev, github.dev).
- Files larger than 2 MB open in VS Code's plain text editor.
Credits
Contributions are welcome: see CONTRIBUTING.md. Version history: CHANGELOG.md.
License
MIT