Floating Toolbar
The floating toolbar at the top right of the preview has four rows of four buttons, so it stays narrow and covers little of the page:
-
Main: Refresh, Edit (writable previews only), Export to HTML (see below), and a chevron button that hides or shows rows 2 to 4.
-
Navigation: Anchor (link the preview scroll to the text editor), Theme, Back and Next.
-
View: Width, Fold (folds every section, or unfolds them all when any is folded; see Folding sections), Zoom out and Zoom in.
-
Review: Table of contents, Side-by-side (see below), the incoming-changes (Diff) toggle and the Comments toggle (hides or shows the gray comment chips and every review mark: the thread chips, the highlighted quotes, the badges and the Orphaned comments box; in preview and in edit mode).
The Table of contents toolbar button shows the outline of the whole document next to the preview. A
[TOC] line (or [[_TOC_]], or a {contents} directive) in the text (inserted by the Table of contents button of the edition palette or by
/toc) renders the same headings as a list inside the document itself.
With preview.listItemsInToc on (off by default), the table of contents button also lists the
items of top-level lists under their heading; the [TOC] list in the document keeps the headings
only. See Settings.
The Side-by-side toggle turns each block changed since the last Git commit into a small diff
card: the block as it was at the last commit on the left, as it is now on the right, both rendered,
with the removed words struck through on the left and the added words underlined on the right. An
added block has an empty left side; a deleted block comes back with an empty right side. Unchanged
blocks stay as they are, so the page shows several small diffs. It is off by default (the green bar
stays), it works in reading mode only (the button is disabled in edit mode, where the green bars
remain), and it never changes the file. It needs the same conditions as the green bars: a file known
to Git in a trusted workspace, with preview.showIncomingChanges on, which also hides the button
when off.
Export to HTML
The Export button, or the command Export to HTML of the command palette, saves the page as one
.html file that a reader opens in any browser, with no editor and no other file. A save dialog
proposes the name of the page with the .html extension; Cancel writes nothing.
-
The file keeps the preview’s theme (including a forced dark, white or cream mode), content width and width mode. The zoom is not kept: the file is written at 100 %.
-
Local images and the Mermaid, PlantUML and Vega diagrams are embedded in the file.
-
Tabs and dropdowns work without JavaScript, and the properties table is a closed section that opens on a click.
-
Review comments, comment marks and editing controls are left out.
-
Links to other files (relative, wiki and blocked links) cannot work for the reader: they are written as plain text, after a warning that lists them. Cancel the warning to stop the export. Links to a web address and to a heading of the same page stay.
-
Export works in Restricted Mode.
The chevron button collapses the toolbar to its first row when you want the most room for the text, and expands it again. The choice is remembered per workspace; a new workspace starts with the toolbar collapsed, so click the chevron to reach rows 2 to 4. Hidden rows are skipped by the Tab key.
Rows 2 to 4 unroll and roll up as one block when you press the chevron. When a panel opens its preview with the toolbar collapsed, it unrolls for a moment and rolls up again, to show that it can expand; a mouse or key press cancels it, it never changes your saved choice, and it does not replay on a refresh, a reload or when the panel follows another document. Tooltips of the toolbar, the edit bar and the table menu slide in from the left. With the system setting “reduce motion” none of these animate.
| Expanded | Collapsed |
|---|---|
![]() |
![]() |

