-
Notifications
You must be signed in to change notification settings - Fork 81
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
How to handle tables? #84
Comments
Do you mean dropped when parsing with a markdown parser? Or something else? |
Dropped by prosemirror due to having a schema with |
Yes, that's legal, but I still don't understand which process is dropping these. |
The prosemirror schema validation as far as I can tell. Because I'm trying to integrate prosemirror-markdown with an external prosemirror schema. |
How are you transforming stuff into a ProseMirror document where this happens? |
Using |
I see. It looks like |
That's what I'm not sure about, if you can have blocks inside a Markdown table or not... Because the schema I tried to adapt |
Are these GFM-style tables? I don't believe those support block markup in the cells. |
Yeah GFM tables like in the default preset of markdown-it. If those don't support these, then my question is answered, and I just need to adjust the schema to accommodate as I did. |
markdown-it doesn't output a
paragraph_{open,close}
token around a table cell's contents which causes it to be dropped with just:As there is only an
inline
inside theth
andtd
but the schema I have specifiesblock+
for them, which means it should have a paragraph... Or is that invalid in Markdown and I should reconfigure the schema?The text was updated successfully, but these errors were encountered: