Have you read a contributing guide?
Current Behavior
Related to #33 - this is a specific bug that demonstrates why markdown-only is insufficient, not just a feature gap.
GET /spaces/{space_id}/objects/{object_id}?format=md serialises table cells by joining all text blocks with spaces, stripping newlines. A cell containing:
Line one
Line two
Line three
Is returned as:
Line one Line two Line three
When that markdown is written back via PATCH object, every cell in the entire table - including untouched columns - collapses into a single unformatted block. The page is permanently damaged until restored from backup.
Plain text blocks outside a table in the same object serialise correctly with \n between them. The bug is specific to table cell serialisation.
Expected Behavior
Expose a format=blocks option on GET object to return the raw block structure, allowing consumers to read and write at the block level without going through the lossy markdown layer.
Steps To Reproduce
- Create a page with a table where cells contain multiple lines (multiple text blocks per cell)
- Call
GET /v1/spaces/{space_id}/objects/{object_id}?format=md
- Observe newlines are stripped inside table cells but preserved in plain text blocks outside the table
- Take the returned markdown, modify any part of it (e.g. fill an empty column), send back via
PATCH /v1/spaces/{space_id}/objects/{object_id}
- Open the page in Anytype - all table cells are now single unformatted blocks
Environment
- OS:macos 26
- Version:0.54.2
Anything else?
No response
Have you read a contributing guide?
Current Behavior
Related to #33 - this is a specific bug that demonstrates why markdown-only is insufficient, not just a feature gap.
GET /spaces/{space_id}/objects/{object_id}?format=mdserialises table cells by joining all text blocks with spaces, stripping newlines. A cell containing:Is returned as:
When that markdown is written back via
PATCH object, every cell in the entire table - including untouched columns - collapses into a single unformatted block. The page is permanently damaged until restored from backup.Plain text blocks outside a table in the same object serialise correctly with
\nbetween them. The bug is specific to table cell serialisation.Expected Behavior
Expose a
format=blocksoption on GET object to return the raw block structure, allowing consumers to read and write at the block level without going through the lossy markdown layer.Steps To Reproduce
GET /v1/spaces/{space_id}/objects/{object_id}?format=mdPATCH /v1/spaces/{space_id}/objects/{object_id}Environment
Anything else?
No response