arobase-che / remark-attr

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

Support for custom data attributes #13

Closed cedricdelpoux closed 4 years ago

cedricdelpoux commented 4 years ago

Hello,

Custom data attributes are valid html attributes but I can't find a way to use them.

![](img.jpg){data-id=2}

should generate:

<img src="img.jpg" data-id="2">

Thank you

arobase-che commented 4 years ago

You are right.

I commited a fix yesterday. But I would like to make it better. An user should be able to allow attributes that start by a defined prefix.

cedricdelpoux commented 4 years ago

Nice ! thank you. Do you plan to release this soon ?

arobase-che commented 4 years ago

Nice ! thank you. Do you plan to release this soon ?

Yes no later than this WE. I don't want to work on it at Christmas.

cedricdelpoux commented 4 years ago

Of course, no rush 😊

arobase-che commented 4 years ago

Since it had been released in 0.10.0, I close this issue.