This is a sample MDX file demonstrating various Markdown syntax elements.
This text is italicized.
This text is bold.
This text is both italicized and bold.
This is a blockquote. You can have multiple lines.
Inline code can be written like const variable = 10;
.
// This is a code block
function greet(name) {
console.log(`Hello, ${name}!`);
}
| Header 1 | Header 2 | | -------- | -------- | | Cell 1,1 | Cell 1,2 | | Cell 2,1 | Cell 2,2 |
You can use two spaces at the end of a line for a line break.
Like this.
You can escape Markdown characters using a backslash: *italic*, **bold**.
Here's a footnote[^1].
[^1]: This is the footnote text.
You can write math equations using LaTeX, like $E=mc^2$.