Skip to content

[fuzz result] "table head" with trailing characters getting counted as a header #813

@notriddle

Description

@notriddle

Something that looks like a table header, but has trailing text, shouldn't count as a table. It plainly contradicts what the spec says here (and disagrees with Pandoc Markdown, Pandoc GFM, actual GFM, and everything else I think to try).

|
-|- *
Details

Events from pulldown-cmark:

"\n |\n-|- *\n" -> [
  Start(Table([]))
    Start(TableHead)
    End(TableHead)
    Start(TableRow)
      Start(TableCell)
        Text(Borrowed("*"))
      End(TableCell)
    End(TableRow)
  End(Table)
]

Events from pandoc:

"\n |\n-|- *\n" -> [
  Start(Paragraph)
    Text(Boxed("|"))
    SoftBreak
    Text(Boxed("-|- *"))
  End(Paragraph)
]

Events from commonmark.js:

"\n |\n-|- *\n" -> [
  Start(Paragraph)
    Text(Boxed("|"))
    SoftBreak
    Text(Boxed("-|- *"))
  End(Paragraph)
]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions