Home · Docs · Editor · Tables

Tables

Insert a table from the slash menu, type into cells, Tab to navigate. Backed by GFM Markdown so they round-trip through paste, export, and the public-link viewer.

Tables in sweetdocs are real GFM Markdown tables — what you see in the editor is exactly what gets saved, exported, and shared. They round-trip cleanly with anything else that speaks GFM (GitHub, Notion, Obsidian, Google Docs imports, etc.).

Here's how the trip splits across the three days:

DayMorningAfternoon
Day 1ArashiyamaTenryū-ji
Day 2Fushimi InariNishiki
Day 3Kinkaku-jiGion walk

Inserting a table

There are two paths:

PathWhat you get
Slash menu → TableFresh 3×3 table with a header row
Paste from a spreadsheetTab-separated data (Excel, Numbers, Google Sheets) converts to a real Markdown table on paste

You can also type a GFM pipe table by hand and it renders live as you finish the separator row:

| A | B | C |
|---|---|---|

Editing cells

KeyEffect
TabMove to the next cell
⇧TabMove to the previous cell
Tab in the last cellAdds a new row below
/ Move between cell rows (or out of the table)
Enter inside a cellInserts a line break inside the cell
Any selection inside a cellBubble toolbar appears as usual — bold, italic, links all work

Cells accept the same content as any paragraph: inline marks (bold, italic, strikethrough, code, link), hex color swatches, and inline HTML. They do not accept block content — no nested lists, no nested tables, no code blocks inside a cell.

Layout + sizing

AspectBehavior
Column widthEqual columns by default, content-driven once cells are filled
Column resize by dragNot supported — we have resizable: false
Row heightGrows with cell content
Table widthFull content width (100%) — fixed table layout
Header rowBackground uses the theme’s subtle surface; bold, left-aligned
Selected cellTinted with the theme’s accent-light overlay

Tables stay readable on mobile because the columns are constrained — wide content wraps within the cell rather than blowing out the layout.

Column alignment (GFM)

Use the standard GFM markers in the separator row to control alignment:

| Left | Center | Right |
|:-----|:------:|------:|
| a    | b      | c     |

Alignment is read at save time and rendered in both Edit and Preview modes.

What’s not available yet

Tables in v1 are deliberately minimal. The following don’t have a UI affordance:

MissingWorkaround
Add row above / belowPress Tab at the end of the last cell to extend by one row
Add column left / rightEdit the underlying Markdown directly, or paste a wider table from a spreadsheet
Delete a row / column / the table itselfSelect the rows visually and delete; or remove the Markdown source
Cell merge (rowspan / colspan)GFM doesn’t support merged cells — use inline HTML <table> if essential (DOMPurify keeps it)
Column drag-resizeNot in v1 (table extension is set to resizable: false)
Header column (left-side header)GFM only models a header row. Use bold in the first column for visual emphasis.

If you need spreadsheet-grade table editing, the fastest workflow is: edit in Excel / Sheets / Numbers → copy → paste into sweetdocs. The pasted TSV becomes a proper Markdown table.

Round-trip behavior

Because tables are stored as plain GFM Markdown: