This post is a draft and is not visible on the blog page or in the RSS feed.

MDX Test with some input variables and prefilled code blocks

This is a test of MDX with some input variables and prefilled code blocks.

Interactive Example

Replace the input fields below with your own values and see how they are rendered in the code block in real-time! Note that the id should be a string without spaces or special characters to avoid issues with syntax highlighting. The value will be replaced by the value of defaultValue and the placeholder will be used if no value is provided.

Terminal window
packageManager install framework --add library

Traditional Code Block

Here’s how the same command would look in a traditional, static code block:

Terminal window
bun install astro --add react

← Back to all posts