A SiYuan Note plugin for exporting complex tables to Excel — supports merged cells, in-cell line breaks, and other complex table formatting.
SiYuan's built-in table copy cannot handle merged cells or line breaks properly when pasting into Excel. This plugin solves that problem.
| Feature | Description |
|---|---|
| Copy to Excel | Right-click a table → Copy to Excel → paste into Excel (Ctrl+V). Fast and lightweight. Suitable for tables without merged cells. |
| Export to Excel (.xlsx) | Right-click a table → Export to Excel → downloads a proper .xlsx file. Perfectly preserves merged cells and line breaks. Uses SheetJS to generate a standard Excel file. |
- Open any note containing a table
- Click the block icon (☰) on the left side of the table
- Choose:
- Copy to Excel — then
Ctrl+Vin Excel - Export to Excel — the browser will download a
.xlsxfile
- Copy to Excel — then
The plugin clones the table's DOM from SiYuan's editor, removes SiYuan-specific attributes, and writes a clean HTML table to the clipboard. Since Excel's clipboard parser does not support rowspan, merged cells are expanded (each cell gets its own copy of the content). Line breaks (<br> / Shift+Enter) are preserved via mso-data-placement:same-cell.
The plugin parses the table DOM, extracts all data, and uses SheetJS (xlsx) to generate a standard .xlsx file. Merged cells are stored in the Excel <mergeCells> list, and line breaks are enabled via the wrapText cell style. The result is a fully compatible Excel file with all formatting intact.
Open SiYuan → Settings → Marketplace → Download → find tableToExcel and install.
- Download
package.zipfrom the Releases page - Extract to
{workspace}/data/plugins/tableToExcel/ - Restart SiYuan or disable and re-enable the plugin in Settings → Marketplace → Downloaded
This plugin was developed with the assistance of AI. All code was tested by humans before release.