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)
]