Open rufuspollock opened 4 months ago
Another data point: just fixed an issue in https://datahub.io/core/atp-world-tour-tennis-data which was 500'ing
Change is here https://github.com/datasets/atp-world-tour-tennis-data/commit/4620a2f1fbc61843919891ba7bb865f591ac3d37 and basically it was just removing some html - this was based on my wild guess was there was something likely in the html (90% of 500 errors are react barfing on html in some way b/c react is very exacting regarding html)
Should we allow support for traditional non-JSX html in markdown files?
Atm you can only use html if it is valid "jsx" so attributes must be camel-cased,
class
must beclassName
etc. This is because we process all markdown files as MDX rather than markdown.At very least i think we should have a good error message for this as i've seen this come up many times.
html style comments don't work
Mention this because out of the box MDX (v2) does not support html comments and will throw and error like:
Instead mdx supports JSX comments e.g.
{/* ... */}
See https://github.com/mdx-js/mdx/issues/1042 for discussion and suggestion of using a plugin like https://github.com/leebyron/remark-comment to resolve the problem