Skip to content

Markdown ignores empty table cells #11547

@gektor-de

Description

@gektor-de

Description

When pasting markdown tables with empty cells, those cells are being ignored.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://www.tablesgenerator.com/markdown_tables
  2. Generate a table or use the following example:
|   |      | Text  |       |      |
|---|------|-------|-------|------|
|   |      |       |       | Text |
|   | Text |       |       |      |
|   |      | Text1 | Text2 |      |

This should render to:

Text
Text
Text
Text1 Text2
  1. Copy and paste to an empty Gutenberg page or post
  2. See error:
    image

Expected behavior

Tables should be parsed from markdown correctly, as they do for example in github or gitlab environments.

Desktop

  • Browser: Tested in latest Chrome and Firefox

Additional context

  • Gutenberg Version: 4.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions