Embed custom component into code element #1298
-
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.
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.
-
@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.
See https://mdxjs.com/guides/live-code for an example on how to overwrite a default construct, in this case also fenced code