Silverware Table: interactive markdown tables
I've been working on a library that makes markdown tables in SilverBullet editable in place. You click a cell and type, sort or filter by a column, and add, move or delete rows and columns without touching the pipes.
I know this is yet another table plugin, but nothing I tried did quite what I wanted, so I decided to build my own.
The main idea is that the table stays plain markdown. Every change is an ordinary edit of the page, so undo works, queries and other tools see the same table, and a page looks fine without the library. Anything extra (a formula, a stored sort or filter, a column width) goes into hidden <meta> tags in the cells or in one metadata row, so it doesn't show when rendered.
I use SilverBullet on my phone a lot, so I made sure the tables work there too, not just on a desktop.
What it does so far:
- editing cells, Enter/Tab to move on, a row added from the last one
- sorting, a filter row, pinned rows and columns, a header that stays on top
- formulas (
=SUM([qty] * [price]), references to other tables and pages) - column types via a hashtag in the header (
#currency-usd,#date,#stars…). The idea comes from MdTableRender, and it should be partly compatible with it: its hashtags and aliases like#euroor#intwork, its number suffixes like#percent10don't - your own formula functions, column types and AutoFill series, written in JS in your space and registered from Space Lua
- themes for tables, set for all of them or per table, and your own theme as a few CSS variables in a space-style block
- copy and paste with Excel or Google Sheets, AutoFill, export to CSV, Markdown and .xlsx
- a sheet view where several tables of a page sit on one grid
A word of warning: the API for your own functions, column types and series may still change while the plugin settles, so expect to adjust them now and then.
It also works on a phone: long press for the cell menu, handles to extend a selection, and the on-screen keyboard stays up while you go from cell to cell.
Most of it can be turned off in the settings, module by module.
Of course this couldn't have happened without AI, I'd never have been able to put this much effort into it on my own. But the code grew step by step, one feature at a time, and I kept steering the architecture towards modularity and extensibility.
To install, add the repository with Library: Add Repository:
It's still early, so feedback and bug reports are welcome, ideally on GitHub: GitHub - damesene/silverware-libraries: Silverware: plugins for SilverBullet, installed as libraries. Starting with Silverware Table: interactive markdown tables. · GitHub
Examples:





















