remarkjs / remark-react

Legacy plugin to transform to React — please use `remark-rehype` and `rehype-react` instead
https://unifiedjs.com
MIT License
524 stars 37 forks source link

is "remark-react looks for an attributes object on each node" working? #53

Closed ruifortes closed 5 years ago

ruifortes commented 6 years ago

The docs say "remark-react looks for an attributes object on each node it compiles and adds the found properties as HTML attributes" I added an attributes object to mdAst nodes but nothing happened. What the documentation referring to?

wooorm commented 6 years ago

Oh I believe that should be hproperties nowadays: https://github.com/syntax-tree/mdast-util-to-hast#hproperties

davidtheclark commented 6 years ago

@ruifortes: PR welcome for any additional documentation that would help with your use case 👍

wooorm commented 5 years ago

Fixed in the recent makeover. Sorry about the long wait.