Skip to content

Mdx code block metadata not injected in props #38106

Answered by LekoArts
ElBartoTn asked this question in Help
Discussion options

You must be logged in to vote

This is expected behavior as per: https://mdxjs.com/guides/syntax-highlighting/#syntax-highlighting-with-the-meta-field

@mdx-js/mdx doesn’t know whether you’re handling code as a component or what the format of that meta string is, so it defaults to how markdown handles it: meta is ignored.

You could use:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LekoArts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants