Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

valign is not being transformed #11

@TheComp44

Description

@TheComp44

HAST transforms property names with acronyms into camelcased names:

Acronyms in names are treated as a normal word and the previous rules apply. For example, itemid become itemId and bgcolor becomes bgColor.

Likewise, valign becomes vAlign 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 unknownvAlign prop which is passed on to the component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions