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

Add support for Table in Markdown TextField #1277

Open
Gsyltc opened this issue Oct 22, 2024 · 1 comment
Open

Add support for Table in Markdown TextField #1277

Gsyltc opened this issue Oct 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Gsyltc
Copy link

Gsyltc commented Oct 22, 2024

Describe the problem to be solved

Hello,

Would it be possible to add table support in text fields as markdown.

Currently, the rendering for a table remains "textual".
The table is not rendered correctly.

Thanks

Describe the solution you would like

No response

@georgegevoian georgegevoian added the enhancement New feature or request label Oct 31, 2024
@drorsnir
Copy link

As far as I can tell, Grist currently uses marked, which supports tables by default, but gfm: false is set in MarkdownTextBox.ts. I couldn't find anything in the comments or commit history except for "A minimal subset of the
Markdown specification is currently supported", which doesn't tell me why, of course.

To be really clear, here's a minimal test case:

  1. Add New -> New Empty Table
  2. Set "Cell Format" to Markdown for column A
  3. Paste a basic table:
| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  | Content Cell  |
| Content Cell  | Content Cell  |
  1. The table isn't rendered:
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants