Skip to content

Naming Convention Question: Should a rehype plugin that supports MDX include "mdx" in its name? #195

Discussion options

You must be logged in to vote

If it works specifically for MDX, for example if it generates MDX specific nodes, I’d name it rehype-mdx-image-xxx.

If it supports hast without MDX, I would name it rehype-image-xxx. It can have special treatment for MDX nodes. I think this best describes your plugin.

I am curious why you need to handle JSX elements.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by talatkuyuk
Comment options

You must be logged in to vote
3 replies
@wooorm
Comment options

@talatkuyuk
Comment options

@talatkuyuk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants