Replies: 1 comment 1 reply
-
You probably used |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to use variables inside code blocks, however they always show as literal text. There doesn't seem to be any way to escape them in MDX.
I believe I have to use
DynamicCodeBlock
. While it does appear to work, I get a hydration error:It does appear these code blocks are highlighted on the client, as they are not highlighted until a few seconds after page load. Is it possible to pre-highlight them on the server so they are already highlighted on page load? This may fix the hydration error too.
Beta Was this translation helpful? Give feedback.
All reactions