Skip to content
New issue

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

incorrect table rendering at first column in first row #241

Closed
simezi opened this issue Apr 17, 2019 · 1 comment · Fixed by #242
Closed

incorrect table rendering at first column in first row #241

simezi opened this issue Apr 17, 2019 · 1 comment · Fixed by #242

Comments

@simezi
Copy link
Contributor

simezi commented Apr 17, 2019

issue

When I write table syntax, if the cell at first column in first row is empty
that cell is ignored and not rendered.

Thanks in advance.

repro

markdown code

|a|b|c|d|
| --- | --- | --- | --- |
|| bbb | ccc | ddd |
|| bbb | ccc | ddd |

what I expect to render

a b c d
bbb ccc ddd
bbb ccc ddd

what I actually get with markdown-to-jsx

a b c d
bbb ccc ddd
bbb ccc ddd

This is reproduced when I paste the code into https://probablyup.com/markdown-to-jsx/

simezi added a commit to simezi/markdown-to-jsx that referenced this issue Apr 17, 2019
@quantizor
Copy link
Owner

Yikes, thanks for catching this

quantizor pushed a commit that referenced this issue Apr 18, 2019
* fix first table's cell is ignored when empty

* add test #241
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants