Viewing and Editing Markdown and Text Files
You can view and edit text-based files — Markdown, HTML, JSON, SQL, TXT, and more — directly, without downloading them.

Preview
A viewer suited to the file format is provided.
| Format | Preview |
|---|---|
| Markdown (.md) | Displayed as a formatted document |
| HTML (.html) | Rendered as a web page |
| JSON (.json) | Collapsible/expandable tree structure |
| Email (.eml) | Sender/recipient info, body, attachments |
| Other text | Displayed as raw text |
For HTML files, scripts are blocked for security until you allow them to run, and some actions may remain restricted even after that. If you need the file to run exactly as-is, download it and open it locally. The preview is view-only; HTML is edited as code in
Raw data. See Viewing HTML Files.
Viewing Raw Data
Click the Raw data button in the top right to view the data before rendering.

Editing
Switching to Edit Mode
- Double-click the body text, whether in Preview or Raw data mode, to switch to edit mode. HTML files cannot be edited in the preview; select
Edit sourceabove the preview, or double-click inRaw data, to edit the code. - For Markdown, a basic text editor is provided, and you can insert images. You can specify not only relative paths like
./image.pngbut also absolute paths.
Pasting Images into Markdown
- Use Ctrl+V (Mac: Cmd+V) to paste an image from the clipboard directly.

When you paste a clipboard image, it's saved directly inside the document in base64 format. This is convenient for sharing as a single document without needing to manage image files separately, but be aware that if there are many images or they are large, the document's own size will grow accordingly.

AI Autocomplete
When the cursor pauses and blinks for a moment, AI suggests content to continue writing. This feature requires an administrator to enable editor AI autocomplete and configure the model selection method in Configure Models & Runtime.

Saving
- Click the floppy disk icon at the top, or save with Ctrl+S (Mac: Cmd+S).
- In
Raw datamode, you can use Ctrl+F for text search and bulk replace.