arobase-che / remark-attr

Remark plugin to add support for custom attributes
Other
57 stars 16 forks source link

Remove undefined values from hProperties #2

Closed Hypercubed closed 5 years ago

Hypercubed commented 5 years ago

I've found that if you look at the mdast generated when using remark-attr it includes undefined values. This isn't a problem if you run the mdast through remark2rehype since it removes the undefined props from the HTML... but it does pollute the mdast.

See here: https://runkit.com/hypercubed/5b61cfc3fca99600122d0541

arobase-che commented 5 years ago

Fixed by the way ^^