Skip to content

Support for table markdown syntax #1453

Closed
@chalin

Description

@chalin

Some API pages like the one for DatePipe contain embedded tables, which displays nicely on the TS-side of the docs. Can we get support for tables in Dart API docs too?

This is the table from the DatePipe API page:

| Component | Symbol | Short Form   | Long Form         | Numeric   | 2-digit   |
|-----------|:------:|--------------|-------------------|-----------|-----------|
| era       |   G    | G (AD)       | GGGG (Anno Domini)| -         | -         |
| year      |   y    | -            | -                 | y (2015)  | yy (15)   |
| month     |   M    | MMM (Sep)    | MMMM (September)  | M (9)     | MM (09)   |
| day       |   d    | -            | -                 | d (3)     | dd (03)   |
| weekday   |   E    | EEE (Sun)    | EEEE (Sunday)     | -         | -         |
| hour      |   j    | -            | -                 | j (13)    | jj (13)   |
| hour12    |   h    | -            | -                 | h (1 PM)  | hh (01 PM)|
| hour24    |   H    | -            | -                 | H (13)    | HH (13)   |
| minute    |   m    | -            | -                 | m (5)     | mm (05)   |
| second    |   s    | -            | -                 | s (9)     | ss (09)   |
| timezone  |   z    | -            | z (Pacific Standard Time)| -  | -         |
| timezone  |   Z    | Z (GMT-8:00) | -                 | -         | -         |

which, in GFM is rendered quite nicely as:

Component Symbol Short Form Long Form Numeric 2-digit
era G G (AD) GGGG (Anno Domini) - -
year y - - y (2015) yy (15)
month M MMM (Sep) MMMM (September) M (9) MM (09)
day d - - d (3) dd (03)
weekday E EEE (Sun) EEEE (Sunday) - -
hour j - - j (13) jj (13)
hour12 h - - h (1 PM) hh (01 PM)
hour24 H - - H (13) HH (13)
minute m - - m (5) mm (05)
second s - - s (9) ss (09)
timezone z - z (Pacific Standard Time) - -
timezone Z Z (GMT-8:00) - - -

cc @kwalrath

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failurescustomer-flutterIssues originating from important to Fluttercustomer-google3Issues originating from or important to Angulartype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions