Skip to content

Markdown Cheatsheet

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Italic text or Italic text Bold text or Bold text Bold and italic text or Bold and italic text Strikethrough text

_Italic text_ or _Italic text_
**Bold text** or **Bold text**
**_Bold and italic text_** or **_Bold and italic text_**
~~Strikethrough text~~
  • Item 1
  • Item 2
    • Nested item 2.1
    • Nested item 2.2
  • Item 3
- Item 1
- Item 2
- Nested item 2.1
- Nested item 2.2
- Item 3
  1. First item
  2. Second item
    1. Nested item 2.1
    2. Nested item 2.2
  3. Third item
1. First item
2. Second item
1. Nested item 2.1
2. Nested item 2.2
3. Third item
  • Completed task
  • Incomplete task
  • Another incomplete task
- [x] Completed task
- [ ] Incomplete task
- [ ] Another incomplete task

Link text Link with title

[Link text](https://www.example.com)
[Link with title](https://www.example.com 'Link title')
![Alt text](https://img.rhinorails.com/squooshed/rack-guard-menu-image-5.jpg?tr=w-811,h-298,f-auto,r-4,dpr-auto)
![Alt text](image-url.jpg 'Image title')

This is a blockquote

This is a multi-line blockquote

> This is a blockquote
>
> This is a multi-line blockquote



---
---
---

inline code

`inline code`
// Code block with syntax highlighting
function sayHello() {
console.log('Hello, world!');
}
```
Code block without syntax highlighting
```
```javascript
// Code block with syntax highlighting
function sayHello() {
console.log('Hello, world!');
}
```
Header 1Header 2Header 3
Cell 1Cell 2Cell 3
Cell 4Cell 5Cell 6
| Header 1 | Header 2 | Header 3 |
| -------- | -------- | -------- |
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
Left-alignedCenter-alignedRight-aligned
LeftCenterRight
LeftCenterRight
| Left-aligned | Center-aligned | Right-aligned |
| :----------- | :------------: | ------------: |
| Left | Center | Right |
| Left | Center | Right |

Here’s a sentence with a 1footnote.

Here's a sentence with a footnote[^1].
[^1]: This is the footnote.

term : definition

term
: definition

term : definition

* This is not italic * _ This is not italic _ ** This is not bold **

\* This is not italic \*
\_ This is not italic \_
\*\* This is not bold \*\*

This is HTML within Markdown















<div className="custom-class">
<p>This is HTML within Markdown</p>
<button
type="button"
className="shadow-primary-3 hover:shadow-primary-2 focus:shadow-primary-2 active:shadow-primary-2 bg-primary hover:bg-primary-700 focus:bg-primary-700 active:bg-primary-700 inline-block rounded px-6 pt-2.5 pb-2 text-xs leading-normal font-medium text-white uppercase transition duration-150 ease-in-out focus:ring-0 focus:outline-none motion-reduce:transition-none">
Button
</button>
<br />
<br />
<button
type="button"
className="shadow-primary-3 hover:shadow-primary-2 focus:shadow-primary-2 active:shadow-primary-2 bg-primary hover:bg-primary-700 focus:bg-primary-700 active:bg-primary-700 inline-block rounded px-6 pt-2.5 pb-2 text-xs leading-normal font-medium text-white uppercase transition duration-150 ease-in-out focus:ring-0 focus:outline-none motion-reduce:transition-none"
data-twe-ripple-color="light"
data-twe-ripple-init>
Click me
</button>
<br />
<br />
<button
type="button"
className="shadow-primary-3 hover:shadow-primary-2 focus:shadow-primary-2 active:shadow-primary-2 bg-primary-500 hover:bg-primary-700 focus:bg-primary-700 active:bg-primary-700 inline-block rounded px-6 pt-2.5 pb-2 text-xs leading-normal font-medium text-white uppercase transition duration-150 ease-in-out focus:ring-0 focus:outline-none motion-reduce:transition-none"
data-twe-ripple-color="light"
data-twe-ripple-init>
Primary
</button>
<br />
<br />
<button
type="button"
className="hover:bg-primary-secondary-700 bg-secondary-500 text-primary-700 focus:bg-secondary-700 active:bg-secondary-700 inline-block rounded px-6 pt-2.5 pb-2 text-xs leading-normal font-medium uppercase transition duration-150 ease-in-out focus:ring-0 focus:outline-none motion-reduce:transition-none"
data-twe-ripple-color="light"
data-twe-ripple-init>
Secondary
</button>
<br />
<br />
<button
type="button"
className="bg-blue-gray-50 text-primary hover:bg-blue-gray-200 hover:text-primary-700 focus:bg-blue-gray-200 focus:text-primary-700 active:bg-blue-gray-200 active:text-primary-700 inline-block rounded px-6 pt-2.5 pb-2 text-xs leading-normal font-medium uppercase transition duration-150 ease-in-out focus:ring-0 focus:outline-none motion-reduce:transition-none"
data-twe-ripple-color="dark"
data-twe-ripple-init>
Tetriary
</button>
<br />
<br />
</div>
:::note
This is a note admonition
:::
:::warning
This is a warning
:::
:::danger
This is a danger admonition
:::
:::info
This is an info admonition
:::
:::tip
This is a tip admonition
:::
```jsx title="Component.jsx"
function MyComponent() {
return <div>Hello World</div>;
}
```
```css title="styles.css"
.container {
padding: 20px;
}
```
<kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>Del</kbd>

Ctrl; + Alt; + Del

<details>
<summary>Click to expand</summary>
This content is hidden by default.
- It can contain any markdown
- Including lists, code blocks, etc.
</details>
Click to expand

This content is hidden by default.

  • It can contain any markdown
  • Including lists, code blocks, etc.
<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
Inline equation: $E = mc^2$
Block equation:
$$
\frac{d}{dx}(x^n) = nx^{n-1}
$$
---
title: Page Title
description: Page description used for SEO
layout: ../layouts/MainLayout.astro
---
import { ComponentName } from '@/components/ComponentName';
<ComponentName prop="value" />

sh npm install package-name

import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="npm" value="npm">
```sh
npm install package-name
```
</TabItem>
<TabItem label="Yarn" value="yarn">
```sh
yarn add package-name
```
</TabItem>
<TabItem label="pnpm" value="pnpm">
```sh
pnpm add package-name
```
</TabItem>
</Tabs>
import { Preview } from '@components/Preview';
<Preview>
<Button>Click Me</Button>
</Preview>
  • Directorysrc/
    • Directorycomponents/
      • Button.jsx
      • Card.jsx
    • Directorylayouts/
      • MainLayout.astro
  • package.json
import { FileTree } from '@astrojs/starlight/components';
<FileTree>
- src/
- components/
- Button.jsx
- Card.jsx
- layouts/
- MainLayout.astro
- package.json
</FileTree>
  1. First step instructions
  2. Second step instructions
  3. Third step instructions
import { Steps } from '@astrojs/starlight/components';
<Steps>
1. First step instructions
2. Second step instructions
3. Third step instructions
</Steps>
import { Aside } from '@astrojs/starlight/components';
<Aside type="note">
This is a note aside.
</Aside>
<Aside type="tip">
This is a tip aside.
</Aside>
<Aside type="caution">
This is a caution aside.
</Aside>
<Aside type="danger">
This is a danger aside.
</Aside>
import { Icon } from '@astrojs/starlight/components';
<Icon name="github" />
:::caution
If you are not sure you want an awesome docs site, think twice before using [Starlight](/).
:::
:::danger
Your users may be more productive and find your product easier to use thanks to helpful Starlight features.
- Clear navigation
- User-configurable color theme
- [i18n support](/guides/i18n/)
:::
  1. This is the footnote.