Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render HTML tables in messages #2119

Open
freelock opened this issue Oct 4, 2023 · 0 comments
Open

Render HTML tables in messages #2119

freelock opened this issue Oct 4, 2023 · 0 comments

Comments

@freelock
Copy link

freelock commented Oct 4, 2023

Your use case

What would you like to do?

Have HTML tables rendered in the message text.

Why would you like to do it?

We have daily and weekly activity summaries reported to a room by a bot. These use regular HTML tables to lay out data in columns.

In Element X, this content is entirely missing.

In the old Element Android, the content was there but unreadable -- there were line breaks between table rows but table cells were all smushed together with no separator.

How would you like to achieve it?

Use an actual table to render, the same way Element Web does. I think for the first cut, allowing horizontal scrolling on this element would be fine.

A future enhancement option could be to pivot the table to show all values for a row, using the th in column headers as labels for each value -- e.g. using "tablesaw" or equivalent: https://github.com/filamentgroup/tablesaw

Have you considered any alternatives?

No response

Additional context

No response

Are you willing to provide a PR?

No

@julioromano julioromano transferred this issue from element-hq/element-x-android Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants