Skip to content

Override html tags used in mdx file #2561

Answered by wooorm
gabriele-ct asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Gabriele!

Don’t.

You can write Dl instead of dl, Dt instead of dt. Dd instead of dd.
Or, even use more descriptive names: DefinitionList, DefinitionTitle, DefinitionData.
Maybe even prefix your custom components: definition.list, definition.title, definition.data.

This is how JSX works: some things are components, some things are not components. I’d really recommend using that here too.

For in-depth info on this, see the documentation: https://mdxjs.com/docs/using-mdx/.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gabriele-ct
Comment options

Answer selected by gabriele-ct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants