You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all I'm sorry to open an issue in your GitHub repository! I really appreciate the tool you created and thank you for the work.
Main question
I was wondering if there is a way to parse markdown with this tool and give the attribute className instead of the regular class when using a comment like:
Some paragraph of my markdown file...
<!--rehype:className=regularText-->
The problem with this is that if I render things as .use(rehypeAttr, { properties: 'attr' }), this gives a translation that adds class to the resulting <p> instead of className. I'm asking this in the hope that something already exists, but if not I'd be happy to collaborate on some code for the implementation.
Another question
I was using ChatGPT to help me fix this, and it suggested a syntax similar to this:
Main question
I was wondering if there is a way to parse markdown with this tool and give the attribute
className
instead of the regularclass
when using a comment like:Some paragraph of my markdown file... <!--rehype:className=regularText-->
The problem with this is that if I render things as
.use(rehypeAttr, { properties: 'attr' })
, this gives a translation that addsclass
to the resulting<p>
instead ofclassName
. I'm asking this in the hope that something already exists, but if not I'd be happy to collaborate on some code for the implementation.Another question
I was using ChatGPT to help me fix this, and it suggested a syntax similar to this:
Is this valid? Because when I try to use it nothing happens.
The text was updated successfully, but these errors were encountered: