Embed custom component into code element #1298
Answered
by
wooorm
tillkolter
asked this question in
Q&A
-
Hi,
with a custom component to result in
Can anyone explain me how to achieve this if this is possible? |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Oct 16, 2020
Replies: 2 comments 3 replies
-
See https://mdxjs.com/guides/live-code for an example on how to overwrite a default construct, in this case also fenced code |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ChristianMurphy
-
@tillkolter MDX (and commonmark, and GFM) code blocks are, by design and definition, raw code. There are a few options:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://mdxjs.com/guides/live-code for an example on how to overwrite a default construct, in this case also fenced code