Skip to content

Hide header row when empty (table without header) #109

@Spenhouet

Description

@Spenhouet

Markdown doesn't officially support tables without header. A common workaround is to simply make a header with empty cells.

|        |        |
| :----- | :----- |
| Cell 1 | Cell 2 |

GitHub also only partially supports this use-case, as GitHub will still show the header but smaller:

Cell 1 Cell 2

Milkdown displays the table header in full height:

Image

Even though GitHub doesn't support it, I wish that Milkdown could just completely hide the header when it is empty i.e. support tables without header. If that's not wanted, than I wish that the header is also displayed with a small height as done by GitHub.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions