-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Bug: Tables without final newline #123
Comments
Everything is working except for tables, issue open @ remarkjs/remark#123
I think 3.1.3 closed this. I got these results with the aforementioned example: {
"type": "root",
"children": [
{
"type": "table",
"align": [
null,
null
],
"children": [
{
"type": "tableHeader",
"children": [
{
"type": "tableCell",
"children": [
{
"type": "text",
"value": "foo"
}
]
},
{
"type": "tableCell",
"children": [
{
"type": "text",
"value": "bar"
}
]
}
]
},
{
"type": "tableRow",
"children": [
{
"type": "tableCell",
"children": [
{
"type": "text",
"value": "1"
}
]
},
{
"type": "tableCell",
"children": [
{
"type": "text",
"value": "2"
}
]
}
]
}
]
}
]
} |
3.1.3 was installed when I tried it :/
|
Then I’m guessing the problem is the missing EOF EOL, I’ll check. |
@wooorm You're right, it works if I add another newline to the end of the string. Is there a way to overcome the need for it? |
I'll take them out eventually, re: remarkjs/remark#123
🎉 thanks! |
No problem, thanks for reporting! 😄 |
remark.parse("|foo|bar|\n|-|-|\n|1|2|")
results in mdast with the following shape:(I took out the position objects to make the above more concise.)
For some reason the row is being pulled out as a paragraph now. I see there are some new table options added to the parse configuration object and toyed with them, but neither seems to fix the issue.
Parsing the above string definitely worked in the 2.x tree.
The text was updated successfully, but these errors were encountered: