You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
I've just checked and the tests seem to be failing for the PR, but I think the problem is with rehype-parse. I think it uses the svg namespace for the tests for some reason, which doesn't transform property names.
But I have tested with both rehype-dom-parse (in the browser) as well as using hastscript directly and both are transforming property names according to the HAST spec:
I was wrong. The tests just used an outdated version of unified, rehype-parse and rehype-stringify. Should update those dependencies, but then the tests have to be rewritten to support ESmodules as unified can't be required anymore.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
HAST transforms property names with acronyms into camelcased names:
Likewise,
valign
becomesvAlign
in a HAST, but the plugin only checks for the lowercase property name, which misses on all HASTs.This is a problem when using rehype-react as react complains about the unknown
vAlign
prop which is passed on to the component.The text was updated successfully, but these errors were encountered: