Markwright
Edit any Markdown file in bb like a Notion page, and a save rewrites only the blocks you changed.
Why type Markdown at all?
Plugin · for bb · v0.1 · MIT · 2026. Built with TypeScript, React, Tiptap 3, ProseMirror, highlight.js.
Watch it work
Redrawn for this page, with invented content. Touch it to take over.
- Tick it · Click, don’t type. · 1 line changed · A tick in the document is one line in the file: - [ ] becomes - [x], written 800 ms after the click.
- Insert it · Type / for anything. · 3 lines added · The / menu holds every block. A callout is written as GitHub writes one, > [!WARNING], and nothing else moves.
- Draw it · Draw with text. · 8 lines added · A Mermaid diagram is a plain fence in the file. Edit diagram shows its source, and the diagram follows as you type.
- Agents welcome · You choose. · 0 silent overwrites · An agent’s change appears in place. If you have unsaved edits, the write is stopped and you choose: Compare, Use theirs or Keep mine.
Why
Markdown is easy to read and fiddly to write. Markwright lets you write it like a document, and git sees only the blocks you touched.
Markwright is a WYSIWYG Markdown editor and a bb plugin: any .md file opens in the side panel as a page you edit like Word or Notion, with a slash menu for every block. The file on disk stays plain Markdown, and an agent can work in it while you do.
- Type / for 39 blocks and templates
- Live Mermaid diagrams, from eight starters
- Tables you Tab through
- Five GitHub callouts
- Eleven Markdown templates, README to postmortem
- Rich and Source, one click apart
What git sees
One sentence added. Saved two ways.
A sentence added to one paragraph of a file written in another team’s habits
- Markwright
- The whole file written out
Both files come from the plugin’s own code. The second is the same edit written back out as a whole document through the same serializer, which puts every block in its own style. Markwright keeps the untouched blocks’ bytes. The block you edit is written out whole, so in that paragraph _never_ becomes never.
Start from a template
Eleven documents, ready on an empty file.
An empty file offers all eleven, and any of them can be inserted at the cursor from the / menu. These are the plugin’s own templates, as they open.
- Rich
- Source
- README · Overview, install, usage, configuration · The README template as it opens: overview, install, usage, configuration
- Meeting notes · Attendees, agenda, decisions, action items · The Meeting notes template as it opens: attendees, agenda, decisions, action items
- Architecture decision record · Status, context, decision, consequences · The Architecture decision record template as it opens: status, context, decision, consequences
- PRD / feature spec · Problem, goals, requirements, open questions · The PRD / feature spec template as it opens: problem, goals, requirements, open questions
- RFC / design doc · Summary, motivation, design with diagram, rollout · The RFC / design doc template as it opens: summary, motivation, design with diagram, rollout
- Changelog entry · Keep a Changelog sections · The Changelog entry template as it opens: keep a changelog sections
- Bug report · Steps, expected, actual, environment · The Bug report template as it opens: steps, expected, actual, environment
- Runbook · Prerequisites, steps, rollback, contacts · The Runbook template as it opens: prerequisites, steps, rollback, contacts
- PR description · What, why, how to test · The PR description template as it opens: what, why, how to test
- Incident postmortem · Impact, timeline, root cause, follow-ups · The Incident postmortem template as it opens: impact, timeline, root cause, follow-ups
- Weekly status · Done, next, risks · The Weekly status template as it opens: done, next, risks
- 39
- 800 · ms
- 0
In the real thing
Markwright itself, in bb.
- Type / for anything · The / menu filters as you type: /dia narrows it to the eight diagram starters. · The / menu filtered to Diagrams: flowchart, sequence, class, state, entity relationship, Gantt, pie and mind map · 1920 · 1200
- Edit a diagram · Edit diagram shows the Mermaid source above its live preview, and the diagram follows as you type. · A Mermaid flowchart with its source open above the rendered diagram · 1920 · 1200
- Begin from a template · An empty file offers the eleven templates, or a / for any block. · An empty file offering eleven templates: README, meeting notes, ADR, PRD, RFC, changelog, bug report, runbook, PR description, postmortem and weekly status · 1920 · 1200
- Changed on disk · If the file changes while you have unsaved edits, Compare shows both versions before you choose Use theirs or Keep mine. · The changed-on-disk banner with Compare open: the version on disk and the unsaved version, line by line · 1920 · 1200
Proven on real files
Open it, save it unedited, compare the bytes.
The plugin’s own test corpus: a README, a changelog, a design doc, a getting-started guide, and files built to trip it up, with CRLF line endings, front matter, raw HTML and mixed list styles. Two use syntax it will not rewrite, so they open read-only instead.
- open
- save unedited
- compare
- sample-changelog.md · Saved unedited: identical
- sample-design-doc.md · Saved unedited: identical
- sample-getting-started.md · Saved unedited: identical
- sample-plugin-readme.md · Saved unedited: identical
- synth-callouts.md · Saved unedited: identical
- synth-crlf.md · Saved unedited: identical
- synth-empty-items.md · Saved unedited: identical
- synth-frontmatter.md · Saved unedited: identical
- synth-gfm.md · Saved unedited: identical
- synth-html.md · Saved unedited: identical
- synth-links.md · Saved unedited: identical
- synth-styles.md · Saved unedited: identical
- gated-footnote.md · Opens read-only: this file has footnotes
- gated-reflinks.md · Opens read-only: this file uses reference-style links
111
Keyboard
Markdown shortcuts still work as you type: # for a heading, - for a list, [ ] for a task, > for a quote, ``` for code.
- ⌘ · B · Bold.
- ⌘ · I · Italic.
- ⌘ · ⇧ · X · Strikethrough.
- ⌘ · E · Inline code.
- ⌘ · K · Add or edit a link.
- ⌘ · \ · Clear formatting.
- ⌘ · ⌥ · 1–6 · Heading 1 to 6.
- Tab · In a table, the next cell; in the last cell, a new row.
- ⌘ · S · Save at once, without waiting for autosave.
Light and dark
Light
Dark
The same document in bb’s light and dark mode.
Questions
Will it reformat my file?
No. A save rewrites only the blocks you changed, so git diffs stay small. Untouched blocks keep their exact bytes, including list markers, table padding, front matter, raw HTML and line endings, and opening a file never writes to it. A block you do edit is written out whole, in the editor’s own style.
What if an agent edits the file while I’m in it?
Every write is compare-and-swap on the file’s SHA-256. With nothing unsaved, the agent’s change appears in place within about 3 seconds, without moving your cursor. With unsaved edits, autosave pauses and a banner offers Compare, Use theirs or Keep mine. Nothing is overwritten silently.
Which files open read-only?
Files with footnotes, reference-style links, $$ math or MDX, files over 600 KB, and the rare block the editor can’t write back exactly. They open in bb’s normal preview with the reason and an Edit source button. Raw HTML is fine: it shows as source and is saved byte for byte.
Can I still edit the Markdown itself?
Yes. The Rich | Source switch in the header shows the raw text, and the Markdown shortcuts still work in the rich view.
Does anything leave my machine?
No. It reads and writes files through bb’s own file API, needs no account, API key or external service, and sends nothing off the machine.
How do I make it the default for Markdown?
In Settings, under File openers, pick Markwright for md. For a single file, right-click its link and choose Open with, then Markwright.
What does it tell my agent?
It ships a skill that tells the agent which Markdown stays editable (callouts, mermaid fences, pipe tables) and which turns rich editing off, and to make small, targeted edits to a file you have open.
What if a save fails?
Your text is also kept in a local draft and offered back the next time you open the file.
Requirements
- bb · 0.49 or later · Plugin SDK 0.6.132 or later.
- Opens · .md and .markdown files · In a thread’s side panel.
- Saving · Autosave after 800 ms · ⌘S saves at once; a pending save is flushed when the tab loses focus or closes.
- Account · None · No API key or external service.
- Licence · MIT
Get it
Requires bb 0.49 or later. Then open any .md file in a thread’s side panel.
bb plugin install https://github.com/ahsan7162/markwright.git