Skip to content

Markdown files

Open a Markdown file to read and edit it in a rich view. Kodik renders headings, lists, task checkboxes, tables, syntax-highlighted code blocks, images, math, and Mermaid diagrams without installing an extension, and lets you type straight into the document. Type / on an empty line for the block menu, select text for the formatting toolbar, and use the handles on tables to add or move rows and columns.

Large plain-text replies with long unbroken words render faster, including words containing dots that are not file references. Their original text remains available after a reload. Replies listing many file references also render faster, including during Markdown processing, while keeping their text, formatting and file targets.

Large Markdown files load progressively while the rest of the IDE stays responsive. You can read the preview while it loads; editing becomes available when the complete document is ready. Switching files or receiving a newer file update cancels the previous load. Saving during loading keeps the complete source file. Saving without edits preserves the source. If an edited region has extensive formatting differences that cannot be matched safely, Kodik may normalize that region’s Markdown.

Preview follows Editor: Font Size (editor.fontSize), including a size configured specifically for Markdown. Changes apply to an open preview immediately. To use a separate preview size, set markdown.preview.fontSize to a positive number of pixels; 0 follows the editor again.

The right end of the breadcrumbs row above the document shows one Preview / Markdown switch. Preview is the rich view; Markdown is the plain text editor. The commands Markdown: Switch to Preview and Markdown: Switch to Source do the same from the Command Palette.

Both views edit the same file. Changes you make in the rich view show up in the text editor without saving, and the other way round. Saving, undo, and the dirty marker on the tab work as they do for any file. When you edit in the rich view, Kodik rewrites only the lines you changed; frontmatter, escapes, and math elsewhere in the file keep their exact text.

File: Revert File discards the latest rich edits, including text typed immediately before the command, and keeps the tab clean.

Kodik remembers the view you last chose for each file across reloads. Settings → Agents → Open Markdown files as preview chooses how other Markdown files open: on for the rich view, off for the text editor. Explicit Open With editor associations take precedence over both.

When restoring editor tabs, Kodik skips previews of deleted local files. It restores the preview if it can recover unsaved edits.

Switching to another editor tab and returning to Preview keeps your reading position. Clicking the active tab again or focusing its editor group from the keyboard also keeps the preview in place, even when the text caret is elsewhere in the document. This also holds after interacting with another Preview or typing in the chat input.

Links open in the browser or, for relative paths, as files in the editor. Heading links scroll within the document. Click a link to follow it. Right-click for a menu that matches the link: Copy Link and Edit Link for a heading in this file, Open File, Copy Path, and Edit Link for a nearby file, or Open in Kodik Browser, Open in External Browser, Copy Link, and Edit Link for a website. Hovering a link does not show a chip. Select text and click Link on the formatting toolbar to paste a URL. Relative images resolve from the document. YAML frontmatter appears in a collapsible Frontmatter panel above the document and is written back exactly as typed. Press Ctrl+F in the rich view to find text; Enter and Shift+Enter step through matches. Switching between Preview and Markdown keeps the same part of the document in view. The preview scrolls vertically only; wide code blocks, tables, and diagrams scroll inside themselves.

In an SSH workspace, relative images load from the remote document’s folder and keep working after Reload Window, including with mixed-case SSH host aliases. A missing remote image stays unavailable even if a file with the same name exists locally.

Inline and display formulas keep their fonts and layout in SSH workspaces, including after Reload Window and when you move the editor into a new window.

Mermaid fences use the same viewer in Markdown files, Chat, and generated plans. Flowcharts, sequence, class, ER, state, and XY charts render; other Mermaid types stay as a parser error with the source visible.

  • Hover a diagram to show Zoom Out, Zoom In, Diagram Source, and Expand Diagram. The zoom buttons sit to the left of the source and expand buttons and adjust the diagram directly in the page. They are always reachable by Tab and are disabled while the source is showing. Escape or Close Diagram closes the larger vector view.
  • Diagram Source shows the Mermaid fence. In the Markdown editor you can edit that source; Preview keeps it read-only. Chat and generated plans also keep it read-only.
  • In the expanded view, use Zoom In, Zoom Out, and Reset View, drag to pan, or scroll the mouse wheel to zoom. With the diagram focused, arrow keys pan, plus and minus zoom, and 0 resets the view. Closing restores the inline preview’s previous zoom and position. Each fullscreen opening starts with the drawing centered at 100% zoom.
  • Copy Code in the expanded view copies the current Mermaid source with its indentation and line breaks, whether the drawing or source is visible, including after a syntax error. The button briefly turns into a checkmark after copying.
  • A syntax error stays inside its diagram: the viewer shows the parser’s message and the diagram source in place of the drawing. Edit the source to recover.

Diagrams follow the editor’s theme and font settings. Rendering runs locally.

New words in a table fade in as they arrive; paragraphs and lists show their words as they arrive, without a fade. Text that arrives faster than it could be read, such as a restored reply, appears at once, and with Enable chat animations off or the system’s reduced-motion preference on, table words appear without the fade.

Numbered lists in chat keep their full markers visible with your chosen chat font and size. Multi-digit numbers and nested alphabetic or Roman markers have their own space, and wrapped text stays aligned with the list item’s text.

Every table Kodik renders outside the rich Markdown view — chat answers, reasoning, tool and sub-agent results, agent reports, generated plans, the Team Board — carries an Expand table control in its top-right corner. It appears when you hover the table and is always reachable by Tab.

  • Expanding opens the table over the whole window rather than the pane it was rendered in, so a comparison table stays readable while Chat is docked as a narrow sidebar. The window it opens in fits the table: a small table opens small, and a large one grows to nearly the full screen. Its title is the nearest heading above the table in the answer, if there is one.
  • In the expanded view, columns size to their content instead of wrapping, both axes scroll, the header row stays visible while you scroll, and text stays selectable.
  • Arrow keys, PageUp / PageDown, and Home / End scroll the expanded table from anywhere inside it.
  • Escape, Close table, or a click on the dimmed area closes it and puts focus back on the control you opened it from. Nothing else in the workbench reacts to that Escape.
  • A table that is still being written keeps gaining rows while it is expanded.

While an answer is streaming, a table does not resize with every word: its header appears once the whole header line has arrived, its columns fit their content and only widen while rows arrive, and each new row shows with all its cells at once and fills in as its text arrives. Nothing moves when the table is done. A table is as wide as its content, up to the width of the chat.

In answers, short values such as statuses and numbers stay on one line and digits line up in their columns; in a narrow chat a wide table scrolls sideways instead of squeezing its columns.

In the rich Markdown view, tables stay editable with their own row and column handles instead.

Raw HTML is shown read-only in the rich view; edit it in the text editor. Gantt, pie, mindmap, gitGraph, and similar Mermaid types are not drawn.