Describe the bug
Tables are broken!
To Reproduce
Go to https://marked.js.org and use the following table with versions 0.3 and 0.4+
Marked v0.3

Marked v0.4+

Markdown example
Name | Insert | Access | Search | Delete | Comments
-|-|-|-|-
[**Array**](#Array) | [*O(n)*](#Insert-element-on-an-array) | [*O(1)*](#Access-an-element-in-an-array) | [*O(n)*](#Search-an-element-in-an-array) | [*O(n)*](#Deleting-elements-from-an-array) | Insertion to the end is `O(1)`. [Details here.](#Array-operations-time-complexity)
[(Hash)**Map**](#HashMaps) | [*O(1)**](#Insert-element-on-a-HashMap-runtime) | [*O(1)**](#Search-Access-an-element-on-a-HashMap-runtime) | [*O(1)**]
Expected behavior
The table should render as in versions 0.3
Looks like you are missing a column for the line of dashes
- -|-|-|-|-
+ -|-|-|-|-|-
If you copy your markdown example into github it won't render as a table
Also compare marked with the commonmark output.
Neither produce a table.
This is probably due to better conformance to the commonmark spec.
So it looks like version 0.3 was more forgiving. As @UziTech pointed out I was missing the |-. Now, it works with any version of marked and github:
Name | Insert | Access | Search | Delete | Comments
-|-|-|-|-|-
Array | O(n) | O(1) | O(n) | O(n) | Insertion to the end is O(1). Details here.
(Hash)Map | O(1) | O(1) | O(1)
Most helpful comment
Looks like you are missing a column for the line of dashes
If you copy your markdown example into github it won't render as a table