Skip to content

Indented tables are ignored #1246

@wpomier

Description

@wpomier

Marked version: 0.3.19
Markdown flavor: GitHub Flavored Markdown
Github commit: b78deebf

Issue Description

When the table is indented (e.g. inside an unordered list), it's ignored.

The following markdown text doesn't work:

 * Marked doesn't work with indented tables like this:

  | column1 | column2 |
  |---|---|
  | value1 | value2 |
  | value3 | value4 |

See it in the Marked Demo page

Result

It should be rendered to:

  • Marked doesn't work with indented tables like this:

    column1 column2
    value1 value2
    value3 value4

What was attempted

Basic usage.

var html = marked(example);

Metadata

Metadata

Assignees

No one assigned

    Labels

    L1 - brokenValid usage causes incorrect output OR a crash AND there is no known workaround for the issuehelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions