rehype-pretty-code icon indicating copy to clipboard operation
rehype-pretty-code copied to clipboard

[Question] Pass metadata from code-block as data-attributes

Open dimitrisnl opened this issue 3 months ago • 0 comments

Hello!

Thank you for this library, it has saved my bacon.

I have a question, is it possible to take these metastrings, and have them as data-attributes in the pre block?

```ts title="title" meta-foo="something" meta-bar="other"

data-rehype-pretty-code-meta-foo="something"
data-rehype-pretty-code-meta-bar="another"

Thanks!

dimitrisnl avatar May 04 '24 09:05 dimitrisnl