We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
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:
|-
O(1)
No branches or pull requests
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
Expected behavior
The table should render as in versions 0.3
The text was updated successfully, but these errors were encountered: