Skip to content

[Discuss] Tables #112

Open
Open

Description

@bmorelli25

Conversion

Tables are rendered as:

```{table}
:width: auto
| <header> | <header> | <header> | ... |
| -------- | -------- | -------- | ... |
|  <text>  |  <text>  |  <text>  | ... |
|  <text>  |  <text>  |  <text>  | ... |
|  <text>  |  <text>  |  <text>  | ... |
|   ...    |   ...    |   ...    | ... |
```

Activity

  1. added
    authoring
    on Dec 17, 2024
  2. Mpdreamz commented on Dec 17, 2024

    @Mpdreamz
    Member

    We support this table syntax but also just the regular GitHub flavored style which would be a bit cleaner in this case?

    e.g just:

    | <header> | <header> | <header> | ... |
    | -------- | -------- | -------- | ... |
    |  <text>  |  <text>  |  <text>  | ... |
    |  <text>  |  <text>  |  <text>  | ... |
    |  <text>  |  <text>  |  <text>  | ... |
    |   ...    |   ...    |   ...    | ... |

    They would render better on Github too.

    Sidenote: I personally dread creating tables in markdown even when my editor helps me so i'd still like a specialized syntax for this e.g

    ```{code-table} <path to yaml_json>
    :columns: prop1, prop3, prop4
    ```

    and maybe revisit #17

  3. bmorelli25 commented on Jan 10, 2025

    @bmorelli25
    MemberAuthor

    Added your table suggestion to #160. I'm going to keep this issue open for now as there are likely some edge cases with tables that we won't see until the bug bash.

  4. changed the title [-][Migration tooling] Tables[/-] [+][Discuss] Tables[/+] on Jan 13, 2025
  5. added
    question
    on Jan 13, 2025
  6. lcawl commented on Jan 16, 2025

    @lcawl
    Contributor

    I think you're already aware of this one, but the table in https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-cross-cluster-search.html#ccs-supported-configurations was brought up as one that has a poor user experience in the old system. It's sourced from https://github.com/elastic/elasticsearch/blob/8.17/docs/reference/search/search-your-data/ccs-version-compat-matrix.asciidoc

    If it's going to be equally poor in the new system, IMO we ought to confirm what's the recommended table behavior in the new system (maximum rows or columns, support for spanning, etc) then clean these up during our migration (or pre-migration if we have advice by then). Off the cuff, for this particular table we could split it into multiple smaller tables or worst case just summarize it as a list instead of a table. Generally moving toward simplicity and smaller bites of info seems like the right path for this stuff.

  7. colleenmcginnis commented on Jan 17, 2025

    @colleenmcginnis
    Contributor

    I'm seeing a couple issue with tables, but probably the most concerning is when an AsciiDoc table contains cells that contain multiple block elements. I don't necessarily think we should support this in docs-builder, but we should definitely have a plan for handling these situations because it's a pretty common pattern across docs, and it makes content very difficult to read.

    Example: Cells containing admonitions

    AsciiDoc doc-builder
    Image
    Link
    Image
    Link

    To get a sense of the scope of this issue, you can search some AsciiDoc docs for (^| )a\| (though that probably won't capture all of the cells). Here's what I got when I checked a few repos:

    • elastic/elasticsearch: 10 mentions in 4 files
    • elastic/kibana: 102 mentions in 12 files
    • elastic/observability-docs: 211 mentions in 29 files

    If we want writers to simplify tables and/or un-table-ify content in complex tables more broadly, we can use this regular expression to capture more formatted cells in AsciiDoc files: ( |^)((\d+)|(\.\d+)|(\+|\*)|([\^\.<>]+)|(a|d|e|h|l|m|s))+\|. This should catch spanning columns/rows, duplicating cells, and formatting cells.

  8. added a commit that references this issue on Jan 27, 2025
  9. theletterf commented on Apr 14, 2025

    @theletterf
    Member

    Is #23 related?

  10. marked table directive #23 as a duplicate of this issue on May 19, 2025
  11. KOTungseth commented on May 19, 2025

    @KOTungseth
    Contributor

    Discussion: #484

  12. cotti commented on May 26, 2026

    @cotti
    Contributor

    AI triage

    Automated investigation against the current codebase. A human still needs to confirm before any code change.

    Original concern

    Discussion thread covering table syntax in MyST Markdown — the {table} directive wrapper, GFM pipe tables, complex multi-block-cell tables migrated from AsciiDoc, and "supercharged" table UX (filtering/searching big tables).

    Findings

    • The basic table story is shipped. src/Elastic.Markdown/Myst/Directives/Table/TableDirectiveBlock.cs:16-122 implements the {table} directive with a 12-unit grid widths system (auto, description, dash-separated like 4-8/4-4-4), validates column counts, and wraps Markdig's pipe-table parser. Plain GFM pipe tables also render directly. Tests live at tests/Elastic.Markdown.Tests/Directives/TableDirectiveTests.cs. Shipped via PR #2852 (commit 05f168a5, 2026-03-13).
    • list-table and csv-table are explicitly unsupported with diagnostic IDs 17 and 33 respectively: src/Elastic.Markdown/Myst/Directives/DirectiveBlockParser.cs:56,75. The "unsupported directive" infrastructure that enforces this decision landed in PR #57 (commit 53fd0b29, 2024-11-12). Sister issues list-table directive #17 and versionadded directive #33 were both closed in Nov 2024 — the decision to not support them appears settled.
    • The {table} directive issue (table directive #23) was closed 2025-05-19. The "supercharged tables" discussion Supercharged Tables #484 was redirected back into this issue on the same day by the OP, so this issue has become the single open landing pad for all remaining table conversation.
    • @Mpdreamz's {code-table} data-driven-table idea from 2024-12-17 has not been picked up in code. No code-table directive exists.
    • @colleenmcginnis's multi-block-cell concern (AsciiDoc cells containing admonitions, lists, code) is real — the current pipe-table renderer cannot represent this, and the migration tooling has nowhere to put the content. Sister issue [Meta] Migration tooling bugs #160 (the migration-bugs meta) closed 2025-02-05, leaving this open as the only home for the concern.
    • @lcawl's big-table UX concern (e.g. the CCS compatibility matrix) is the same problem space as discussion Supercharged Tables #484. No filtering/search UI exists on tables today; src/Elastic.Documentation.Site/Assets/web-components/ has no table-focused component.

    Verdict

    Partially done

    The MVP table support and the explicit "no list-table/csv-table" decision both shipped. What is still open is a small bag of separate, larger questions that share only the word "tables":

    1. Multi-block-cell migration strategy (writer/migration question).
    2. "Supercharged" big-table UX — filterable/searchable/spreadsheet-like rendering (UX/product question).
    3. The {code-table} data-driven idea (product question, would be a new directive).

    Each is worth its own narrowly-scoped issue. Keeping them under a single [Discuss] umbrella has not been productive — the thread has gone quiet for stretches and the linked discussions keep pointing back here.

    Proposal

    Open questions, grouped by audience:

    Writer

    • Multi-block-cell tables (admonitions / lists / code inside one cell): is the agreed policy "writers must un-table-ify these during migration", or do we need a docs-builder mechanism (e.g. a fallback rendering, or accepted Markdown-in-cell syntax) before migration can proceed? Concrete counts: ~10 in elasticsearch, ~102 in kibana, ~211 in observability-docs (per @colleenmcginnis 2025-01-17).
    • Is there a recommended max-rows / max-cols guideline writers should follow? If yes, write it down in /docs/.

    UX / Product

    • Should docs-builder ever render a "supercharged" table (sortable, filterable, copy-friendly), or is that left to per-page custom embeds (Vega / iframes)? Pick a direction so Supercharged Tables #484 can be closed or moved.
    • Do we want {code-table} (data-driven tables from YAML/JSON in the repo) as a first-class directive? If yes, a separate issue + design; if no, close that part of the discussion explicitly.

    Engineering

    • None blocking. Implementation paths exist for all three sub-questions once product/UX picks a direction.

    Related issues

    This issue is the umbrella of a broader table-rendering cluster that has accumulated since it was filed:

    Several of these line up cleanly with the sub-questions in the Proposal above (#508/multi-block cells, #1570+#3376/big-table UX, #2734/data-driven rendering). A maintainer may want to add a cluster:tables label (or similar) across this set so the next pass is a coordinated design rather than another one-off.

    Notes

    Suggested follow-ups (do not auto-create — confirm with maintainers first):

    • A scoped issue: "Decide policy for migrating AsciiDoc multi-block-cell tables".
    • A scoped issue: "Big-table UX: filterable/searchable rendering" (subsumes Supercharged Tables #484).
    • A scoped issue: "{code-table} data-driven table directive".

    Once those exist, this [Discuss] umbrella can be closed.

  13. added
    ai-triaged
    ai:writer-question
    ai:ux-question
    ai:product-question
    on May 26, 2026
  14. bmorelli25 commented on May 28, 2026

    @bmorelli25
    MemberAuthor

    I think there is still a need here. This topic has come up in Slack a few times over the last year. While nothing is blocking, there is a desire to support more complex tables (and not need to use definition lists for everything).

  15. github-actions commented on Aug 29, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open 90 days with no activity. Remove the stale label, or leave a comment, or this will be closed in 14 days.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-triagedai:product-questionai:ux-questionai:writer-questionauthoringquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions