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
Invalid DOM property colspan
. Did you mean colSpan
#302
Comments
@lemcii Thanks for filing, your bug report makes sense. React expects DOM attributes to be camelCase rather than lowercase so that warning is coming from React. Let me circle back with the team and see how we want to fix this in our react renderer meanwhile should be safe to ignore for now since React will safely pass |
These attributes are defined in Markdoc's built-in schema for the
It's a bit of a tricky situation because we really only want them to have this camel casing for the React renderer, it's not applicable to the HTML renderer. There are a few different ways we could approach it, but maybe what we want to do is apply the casing in the built-in schema definition and then have the HTML renderer just call |
* Use colSpan and rowSpan Closes #302 * add marktest test too
What happened?
When using
{% colspan=2 %}
or{% rowspan=2 %}
this warning or equivalent is logged serverside.To reproduce
Version
0.2.1
Additional context
@markdoc/next.js
The text was updated successfully, but these errors were encountered: