MDX: How to insert code within triple-backtick code block #31576
Unanswered
adam-nielsen
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I would like to insert some code that should execute, and have the result displayed inside a triple-backtick code block:
I would like this to render as:
But of course the code isn't executed so it renders as:
It works if I put something like this outside of backticks:
Which renders as:
But this appears as normal paragraph text (not a code block), and I can't get it to work if I use ```.
Any suggestions how I can get this inside a code block?
Additional information
No response
Create a reproduction
(unable, this site doesn't work properly in Firefox)
Beta Was this translation helpful? Give feedback.
All reactions