Skip to content

[Feature Request]: Render lists like tables #2734

Closed as not planned
Closed as not planned

Description

@theletterf

Prerequisites

  • I have searched existing issues to ensure this feature hasn't already been requested
  • I have tested using the latest version of docs-builder

What problem are you trying to solve?

Tables and definition lists don't seem ideal when trying to render lists of settings. We would need something that mixes the convenience of tabular design with an approach that allow us to define lists à la MyST list-table directives or through YAML.

See: https://myst-parser.readthedocs.io/en/latest/syntax/tables.html#list-tables

Proposed Solution

A directive that allows us to render a table from a list, like this:

:::{list-table} Frozen Delights!
:widths: 15 10 30
:header-rows: 1

*   - Treat
    - Quantity
    - Description
*   - Albatross
    - 2.99
    - On a stick!
*   - Crunchy Frog
    - 1.49
    - If we took the bones out, it wouldn't be
 crunchy, now would it?
*   - Gannet Ripple
    - 1.99
    - On a stick!
:::

Examples and Research

No response

Alternative Solutions

No response

Additional Context

How important is this feature to you?

Important

Activity

  1. added theissue type on Feb 18, 2026
  2. cotti commented on Jun 3, 2026

    @cotti
    Contributor

    AI triage

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

    Original concern

    Provide a {list-table} directive (MyST-style) so authors can build tables from a nested bullet list — with :widths: and :header-rows: — instead of pipe tables or definition lists, which are awkward for lists of settings.

    Findings

    • src/Elastic.Markdown/Myst/Directives/DirectiveBlockParser.cs:56 — list-table is explicitly registered in the UnsupportedBlocks map ({ "list-table", 17 }), so it is not implemented. Authoring :::{list-table} constructs an UnsupportedDirectiveBlock rather than a real table block.
    • src/Elastic.Markdown/Myst/Directives/UnsupportedDirectiveBlock.cs:14-17 — that block emits the warning Directive block 'list-table' is unsupported. See https://github.com/elastic/docs-builder/issues/17 for more information. (Note: list-table directive #17 is closed — see below.)
    • src/Elastic.Markdown/Myst/Directives/Table/TableDirectiveBlock.cs:57-90 — the existing {table} directive (registered at DirectiveBlockParser.cs:174) is only a wrapper around a pipe table for 12-unit-grid column widths; ValidateTableColumnCount errors out unless the body contains exactly one pipe table. It does not accept a bullet list, so it does not satisfy this request.
    • src/Elastic.Markdown/Myst/Directives/CsvInclude/ ({csv-include}, registered at DirectiveBlockParser.cs:129) — the closest existing "data → table" mechanism, but it reads from an external CSV file rather than inline list syntax. csv-table is likewise unsupported (DirectiveBlockParser.cs:75).
    • No ListTableBlock/list-table renderer exists anywhere in the tree; the only occurrence of the string is the unsupported-list entry above. git log -S "list-table" shows it was only ever added to the unsupported list (PR Add infrastructure and diagnostics for unsupported directives #57), never implemented.

    Verdict

    Needs stakeholder input

    The feature is not implemented — list-table is an explicitly unsupported directive that warns at build time. Adding it means a new author-facing directive (parse the nested-list body, :widths:, :header-rows:, optional caption/:align:) plus new reader-visible table HTML, so it fails the quick-fix bar (new syntax + new rendered output). The MyST spec is well-defined, so the open questions are mostly about whether to adopt it and how it should look/behave rather than feasibility.

    Proposal

    Open questions, grouped by audience:

    • Writers (ai:writer-question): Should we mirror the full MyST list-table option set (widths, header-rows, align, class, caption/label), or a reduced subset? Should :widths: reuse the existing {table} 12-unit-grid convention (TableDirectiveBlock) for consistency, or follow MyST's relative-integer widths? Is the goal specifically "lists of settings" (which might instead be served by the existing {settings} directive) or general-purpose tables?
    • Readers/UX (ai:ux-question): Should list-table output share styling with pipe tables / the {table} wrapper (and the requested "Stripe-style" striping), or get distinct treatment? Accessibility expectations for generated headers?

    If accepted, the implementation lands in src/Elastic.Markdown/Myst/Directives/ (a new ListTableBlock + view model/template, removing the UnsupportedBlocks entry) with authoring tests under tests/authoring/, and docs under /docs/.

    Related issues

    Notes

    • Consistency cleanup worth doing regardless of the feature decision: the unsupported-directive warning for list-table links to list-table directive #17, which is closed — confusing for writers who follow it. Either reopen list-table directive #17 or repoint the warning at an open tracking issue.
  3. added
    ai-triaged
    ai:ux-question
    ai:writer-question
    on Jun 3, 2026
  4. github-actions commented on Sep 5, 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:ux-questionai:writer-questionclosed-staleenhancementneeds triagestale

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions