Markdown tables without the pipes headache
Markdown tables are easy to read and tiring to write. Every row needs its pipes, and one longer word throws the columns out of line. Loam keeps the file as a standard Markdown table and lets you work in a grid instead. You click a cell and type, and Loam rewrites the pipes for you.
Start a table
There are three ways to begin.
-
Use the Table button. In the desktop and web apps, choose Table in the formatting toolbar at the bottom of the note. Loam inserts an empty table with two columns, a header row and one row below it.
-
Type it. Write a header row, a divider row and your data:
| Part | Qty | Price | | :--------- | :-: | ----: | | Anemometer | 1 | 42.00 | | Mast bolts | 4 | 1.50 | -
Paste a spreadsheet range. This one has its own section below.
The divider row uses three or more dashes per column. The colons set alignment: :--- is left, :---: is centred and ---: is right-aligned, which suits prices. The outer pipes are optional when you type a table, and Loam writes them when it tidies the table.
On iPhone, iPad and Android the format bar has no Table button, so type the table or paste one.
Edit cell by cell
When the cursor is outside a table, the table shows as a grid. Click or tap a cell and type, and only that cell’s text changes in the note.
These keys move around the grid:
| Key | What it does |
|---|---|
| Tab | Next cell, and from the last cell of a row to the first of the next |
| Shift+Tab | Previous cell |
| Tab in the last cell | Adds a new row and moves into it |
| Return | The cell below, or a new row when you are on the last row |
| ↑ and ↓ | The cell above or below |
| Escape | Leaves the grid and puts the cursor after the table |
Pressing ↑ in the header row moves the cursor out of the grid to just before the table, and ↓ in the last row moves it to just after.
A cell holds one line of text. If you type a | in a cell, Loam writes it as \| so it doesn’t split the column. The grid edits each cell as plain text, so **bold** appears with its asterisks while you work in it.
Edit the Markdown instead
Choose the Markdown button on a table to see its source. In the source, Tab and Shift+Tab still move between cells. Each press also tidies the table: it pads every cell to its column’s width, adds the outer pipes and fixes the divider row. Tab in the last cell adds a row here too.
Two jobs are quicker in the source:
- Add a column. Add a cell to the header row and to the divider row, then press Tab. Loam pads every other row to the new width. A table whose header and divider have different numbers of cells isn’t read as a table, so keep those two rows in step.
- Remove a row. Delete its line.
Tables written by another app open as grids too, whether or not they have outer pipes.
Paste a spreadsheet range
Copy a block of cells in your spreadsheet app, put the cursor on an empty line in a note and paste. Spreadsheet apps put cells on the clipboard as text separated by tabs, and Loam turns that text into a Markdown table. The first row becomes the header.
This happens when the paste has at least two rows and two columns, with the same number of columns in every row, and lands at the start of an empty line. Any | in a cell is escaped for you. If the rows don’t line up, Loam pastes the text as ordinary text.
That makes a table a quick way to bring in a price list, a comparison or a schedule without retyping it.
Where tables show up
Tables are plain Markdown, so a note exported from Loam keeps them as pipes and dashes that other Markdown apps can read. On a published page, a table appears as a table. Publishing is a Loam Pro feature, and only the note’s owner can turn it on.
Markdown tables have no merged cells and no multi-line cells. For that kind of layout, a list or a set of headings usually reads better in a note.
Tables are free on every plan. Loam Pro adds sync across devices, collaboration, full version history, AI agents and publishing.
Related
Get new posts in your feed reader. Subscribe with RSS