MDX v2 Test
- JavaScript
- Python
- Java
function helloWorld() {
console.log("Hello, world!");
}
def hello_world():
print("Hello, world!")
class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello, World");
}
}
Math.PI
is 3.141592653589793
/src/components/HelloCodeTitle.js
import React from "react";
function MyComponent(props) {
if (props.isBar) {
return <div>Bar</div>;
}
return <div>Foo</div>;
}
export default MyComponent;
Lorem ipsum.
Explicit Id Heading
Lorem ipsum.
Admonitions
:::note
Some content with markdown syntax
. Check this api
.
:::
Start your site
Run the development server:
cd my-website
npm run start
The cd
command changes the directory you're working with.
Image test
Files assets test
Download this pngor
Download this png using Markdown
Inline SVG test
MDX v2 Demo
Admonitions
something
Some content with markdown syntax
. Check this api
.
:::note
Some content with markdown syntax
. Check this api
.
:::
:::note Your Title
Some content with markdown syntax
.
:::
:::info
Some content with markdown syntax
. Check this api
.
:::
:::caution
Some content with markdown syntax
. Check this api
.
:::
:::danger
Some content with markdown syntax
. Check this api
.
:::
GFM
Autolink literals
www.example.com, https://example.com, and contact@example.com.
Footnote
A note[^1]
[^1]: Big note.
Strikethrough
one or two tildes.
Table
aaaaaa | bbbbbbbbb | ccccc | dddd |
---|---|---|---|
1 | 2 | 3 | 4 |
Tasklist
- to do
- done