> For the complete documentation index, see [llms.txt](https://irosyadi.gitbook.io/irosyadi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://irosyadi.gitbook.io/irosyadi/markdown/markdown-cheatsheet.md).

# Markdown Cheatsheet

## Overview

This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements. It can't cover every edge case, so if you need more information about any of these elements, refer to our reference guides for [basic syntax](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md) and [extended syntax](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/extended-syntax/README.md).

## Basic Syntax

These are the elements outlined in John Gruber's original design document. All Markdown applications support these elements.

| Element                                                                                                                                      | Markdown Syntax                                                                                       |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [Heading](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md#headings)                 | <p><code># H1</code><br> <code>## H2</code><br> <code>### H3</code></p>                               |
| [Bold](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md#bold)                        | `**bold text**`                                                                                       |
| [Italic](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md#italic)                    | `*italicized text*`                                                                                   |
| [Blockquote](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md#blockquotes-1)         | `> blockquote`                                                                                        |
| [Ordered List](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md#ordered-lists)       | <p> <code>1. First item</code><br> <code>2. Second item</code><br> <code>3. Third item</code><br></p> |
| [Unordered List](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md#unordered-lists)   | <p> <code>- First item</code><br> <code>- Second item</code><br> <code>- Third item</code><br></p>    |
| [Code](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md#code)                        | `` `code` ``                                                                                          |
| [Horizontal Rule](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md#horizontal-rules) | `---`                                                                                                 |
| [Link](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md#links)                       | `[title](https://www.example.com)`                                                                    |
| [Image](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/basic-syntax/README.md#images-1)                   | `![alt text](image.jpg)`                                                                              |

## Extended Syntax

These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements.

| Element                                                                                                                                             | Markdown Syntax                                                                                                                                                                             |        |             |                    |             |             |                    |        |       |                    |           |      |             |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ----------- | ------------------ | ----------- | ----------- | ------------------ | ------ | ----- | ------------------ | --------- | ---- | ----------- |
| [Table](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/extended-syntax/README.md#tables)                         | <p> <code>                                                                                                                                                                                  | Syntax | Description | </code><br> <code> | ----------- | ----------- | </code><br> <code> | Header | Title | </code><br> <code> | Paragraph | Text | </code></p> |
| [Fenced Code Block](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/extended-syntax/README.md#fenced-code-blocks) | <p><code>`</code><br> <code>{</code><br>   <code>"firstName": "John",</code><br>   <code>"lastName": "Smith",</code><br>   <code>"age": 25</code><br> <code>}</code><br> <code>`</code></p> |        |             |                    |             |             |                    |        |       |                    |           |      |             |
| [Footnote](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/extended-syntax/README.md#footnotes)                   | <p> <code>Here's a sentence with a footnote. \[^1]</code><br><br> <code>\[^1]: This is the footnote.</code></p>                                                                             |        |             |                    |             |             |                    |        |       |                    |           |      |             |
| [Heading ID](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/extended-syntax/README.md#heading-ids)               | `### My Great Heading {#custom-id}`                                                                                                                                                         |        |             |                    |             |             |                    |        |       |                    |           |      |             |
| [Definition List](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/extended-syntax/README.md#definition-lists)     | <p> <code>term</code><br> <code>: definition</code></p>                                                                                                                                     |        |             |                    |             |             |                    |        |       |                    |           |      |             |
| [Strikethrough](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/extended-syntax/README.md#strikethrough)          | `~~The world is flat.~~`                                                                                                                                                                    |        |             |                    |             |             |                    |        |       |                    |           |      |             |
| [Task List](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/extended-syntax/README.md#task-lists)                 | <p> <code>- \[x] Write the press release</code><br> <code>- \[ ] Update the website</code><br> <code>- \[ ] Contact the media</code></p>                                                    |        |             |                    |             |             |                    |        |       |                    |           |      |             |

## Downloads

You can [download this cheat sheet as a Markdown file](https://github.com/irosyadi/gitbook/tree/481a261ae9dbcba564d38e4e61bccac1bb691b7e/assets/markdown-cheat-sheet.md) for use in your Markdown application.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://irosyadi.gitbook.io/irosyadi/markdown/markdown-cheatsheet.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
