Skip to content

Spike: support for tables - #158

Draft
lauraghiorghisor-tw wants to merge 10 commits into
mainfrom
support-for-tables-spike
Draft

Spike: support for tables#158
lauraghiorghisor-tw wants to merge 10 commits into
mainfrom
support-for-tables-spike

Conversation

@lauraghiorghisor-tw

Copy link
Copy Markdown
Contributor

No description provided.

@minhngocd
minhngocd force-pushed the support-for-tables-spike branch from efd9b15 to 49edb00 Compare September 9, 2024 11:11
@minhngocd
minhngocd force-pushed the support-for-tables-spike branch 2 times, most recently from be491fa to 02aa0c5 Compare September 10, 2024 20:32
We hoped it would help with serialization.
To remove if not proving useful.
@lauraghiorghisor-tw
lauraghiorghisor-tw force-pushed the support-for-tables-spike branch 2 times, most recently from ce4e5cb to 0019769 Compare September 11, 2024 17:11
minhngocd and others added 3 commits September 12, 2024 12:32
Basic table rendering in Markdown with header rows and columns
things that don't work yet
    - toggling of header row and column at the same time that results in some cells not having the header state
    - toggling individual cells - the header status is based off of entire rows
    - does not support header row in the middle of the table or columns in the middle
To prove html parsing works. Included table header column and rows.
@minhngocd
minhngocd force-pushed the support-for-tables-spike branch from 0019769 to fa3b357 Compare September 12, 2024 11:37
Have a decently workable demo
So I can play around with trying to escape characters when writing to cell. Unfortunately didn't manage to achieve escaping | characters
@minhngocd minhngocd added the spike Technical spike to understand implementation details label Sep 18, 2024
@dnkrj

dnkrj commented Sep 23, 2024

Copy link
Copy Markdown

I think that this approach looks good and fits in well with what we've already developed.

There is definitely a lot to explore with the serialisation and wether the table container should manage all of the serialisation or pass it down to rows and cells but that always something that can be refactored with some snapshot tests.

I'd be pro cleaning the PR up and adding a second spike that contains just the attempted to support cell alignment - it will be interesting to explore if this should be a property on a cell (since we don't have columns) or some sort of map on the parent table to make serialisation easier.

Well done 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

spike Technical spike to understand implementation details

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants