Skip to content

Add full markdown table support#59

Merged
a-bonus merged 2 commits intomainfrom
feature/table-support
Feb 19, 2026
Merged

Add full markdown table support#59
a-bonus merged 2 commits intomainfrom
feature/table-support

Conversation

@a-bonus
Copy link
Copy Markdown
Owner

@a-bonus a-bonus commented Feb 19, 2026

Brings in markdown table support (from @mtzirkel's contribution) with Prettier formatting applied.

  • Inserts tables via Google Docs insertTable API and populates cells with text and inline formatting
  • Header rows are bolded automatically
  • Formatting (bold, italic, links) supported within cells
  • Prettier formatting applied to satisfy format:check

Travis Miller and others added 2 commits February 18, 2026 15:07
Tables were previously no-ops (all table tokens explicitly set to
`break`). This patch implements complete table support:

- Inserts a properly-sized table via the Google Docs insertTable API
- Populates each cell with text content
- Supports inline formatting (bold, italic, links) within cells
- Applies bold formatting to header rows automatically
- Handles tables of arbitrary row/column count

Key index formulas verified against the Docs API structure:
  cellContentIndex(T, r, c, C) = T + 4 + r * (1 + 2*C) + 2*c
  emptyTableSize(R, C) = 3 + R * (1 + 2*C)

Tested with an 8-table document (mixed column counts) pushed to
Google Drive via replaceDocumentWithMarkdown — all tables rendered
correctly with bold headers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@a-bonus
Copy link
Copy Markdown
Owner Author

a-bonus commented Feb 19, 2026

closes #58

@a-bonus a-bonus merged commit 4b3008b into main Feb 19, 2026
4 checks passed
@a-bonus a-bonus deleted the feature/table-support branch February 19, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant