[Discussion] Handling tables in Markdown

Proposal

The MR !86353 (merged) allows the rendering of tables from JSON code.

This addition means that there are 3 ways of creating tables in Markdown:

  1. Markdown tables
  2. HTML tables
  3. JSON tables in a code block

Table feature matrix

Alignment Merge cells Sorting Filtering
Markdown - - -
HTML - - -
JSON - -

Table creation

Source

Markdown HTML JSON
image image image

Visual editing

Markdown HTML JSON
image n/a image

Table display

At the moment we don’t distinguish the difference between the two approaches of tables when displaying the table. The difference is only in source. With JSON table, we would continue this approach for display.

Markdown vs HTML Markdown vs HTML(merge cells)
table-same table-mergecell

Table interactivity

With the Markdown and HTML the end result is a static table. With JSON tables we are introducing client side interaction. With this we would need to add visual signifiers to show the affordance that you can click the tables.

image

Edited by Michael Le