Write in Visual mode

Words
1083
Reading
5 min
30m
Listen to this post
~7 min

Feature tour · Composer

If you can write a document, you can write a Hive post. Banksia's composer has a new Visual mode that shows headings, lists, tables and embeds as they will look, while keeping Markdown as the body that actually gets published.

This tour is for a Hive writer who wants a familiar word-processor surface without giving up Markdown, previews or the existing draft workflow. You can move between Write, Visual, Split and Preview at any time; the draft, autosave and publishing queue stay the same.

The short version: A fourth editor mode with rich text on the surface and Markdown in the body. Raw embeds are preserved as protected cards, not executed.

Who it is for: A Hive writer who wants to see the post taking shape, but still wants the portability and control of Markdown.

How to get there:

  1. Open /compose.
  2. Write a title and a body in Write mode, or start with Visual.
  3. Use the toolbar for headings, lists, tables and links.
  4. Switch back to Write whenever you want the raw Markdown.

What it does

Visual mode sits beside the existing Write, Split and Preview modes. It uses a rich text editor for the surface, supports headings, emphasis, underline, strikethrough, links, images, bullet and ordered lists, task lists, blockquotes, fenced code blocks with a language, horizontal rules and tables with alignment, and converts the document back to Markdown before it reaches draft.body.

The draft schema, autosave, history, leave guard and publishing queue are unchanged. A post written in Visual mode is still a normal Hive post; nothing new is stored on chain. The same body can be edited in Write, Visual or the raw HTML source, and switching between them does not rewrite the content.

Raw HTML is preserved, not visually editable. An iframe, a <center> wrapper or a styled span appears as a protected card in Visual mode. The original tag stays in the Markdown or HTML source, and editing inside it still happens in the source mode. The editor never executes author markup.

The heavy editor is lazy-loaded. Tiptap only arrives when Visual mode is first opened, so a normal visit to /compose does not pay for it. The editor is a lazy chunk, not part of the initial compose graph.

Two related writing tools stay in Write and Split: the grammar checker and dictation. Both read and write the textarea directly, so Visual mode hides them rather than offering a rich-text substitute that could drift from the Markdown. Switch back to Write when you want either one; the draft and the Markdown are unchanged.

Walkthrough

Step 1 — Start in Write mode

The composer in Write mode with a title, a Markdown body, the mode switch and the publish checklist
Write mode is still the Markdown source: the draft, autosave, links, images and publish checklist are unchanged.

Write mode is the familiar textarea. The title, post URL slug, Markdown toolbar and publish checklist are where they were. The grammar checker and dictation controls sit on this toolbar, since both work on the textarea. You can start here, paste an existing draft, or switch to Visual immediately.

Step 2 — Switch to Visual

The composer in Visual mode with a rich text toolbar, a heading, a bullet list and a table
Visual mode edits the same body as rich text; Markdown remains the canonical source that is published.

Click Visual and the Markdown becomes a document. The same heading, bullet list and table are now editable in place, and the toolbar reflects the block or mark at the cursor. The mode switch stays visible, so going back to Write is one click.

Step 3 — Use tasks, code and quotes

The Visual composer showing a task list with checkboxes, a fenced code block and a blockquote
Task lists, fenced code blocks and blockquotes render in place; the Markdown body keeps the checkboxes, language tag and quote.

Task lists, fenced code blocks and blockquotes are first-class blocks. The checkboxes are clickable, the code block keeps its language tag, and the quote keeps its marker when you switch back to Write. The preview and the published post use the same Markdown.

Step 4 — Keep embeds as raw HTML

The Visual composer showing a raw HTML embed as a protected card rather than executing it
Embeds and styled HTML survive as raw nodes; Visual mode never executes author markup inside the editor.

An iframe or a <center> wrapper appears as an HTML card. Visual mode does not run the markup, and it does not silently drop it. Switch to Write or the HTML source to edit inside the tag; the bytes are preserved for the renderer and the published post.

Step 5 — Preview before publishing

The composer preview showing the rendered heading, list and table before publishing
Preview renders the same Markdown the reader will see, including the table and list formatting.

Preview shows the reader's view of the same Markdown, including the table and list formatting. The publish checklist still checks the title, tags, beneficiaries, rewards, images, description and authority, and the post is still queued for your posting key.

Why it works this way

Markdown is the canonical body. The editor is a view over it, not a new storage format, so a draft can move between Visual, Write and HTML without a migration. That also keeps the existing autosave, history and publishing queue honest: there is one body, not a rich-text copy and a Markdown copy that can drift.

Raw HTML is preserved but not editable in Visual mode on purpose. Executing author markup inside the editor would widen the XSS surface, so embeds are shown as cards and edited in the source mode. The existing preview and renderer still sanitise the markup before it is displayed.

The lazy load is a performance decision. Most visits to /compose never open Visual mode, so the editor code should not be in the initial compose graph. The first switch to Visual pays the load once; after that the editor is cached for the session.

Limits and status

Live. Visual mode is in the live build.

Raw HTML is preserved, not visually editable. Grammar check and dictation stay in Write and Split because they depend on textarea offsets. Gallery and grid insertion, GIF search, 3Speak upload, per-post analytics and the cross-client metadata broadcast check remain follow-ups. This is an editor mode, not a drag-and-drop page builder, and it does not add arbitrary HTML or custom JavaScript.

Under the hood

W196 — the Tiptap bridge, raw-HTML nodes, Markdown round-trip tests, table and task-list coverage, and the lazy loader.

Try it and tell us

Start at /compose, write a short post, and switch between Write and Visual a few times. If something is confusing or a step is missing, open an issue or reply to the post.

The latest build update is A visual composer, faster keys, and Vault tiers that hold.