What is Markdown?
Write your Prompt using Markdown syntax.
Last updated
Write your Prompt using Markdown syntax.
Last updated
Markdown is a lightweight markup language to add formatting and structure to your Prompts. Markdown is easy to use.
Markdown structures your prompt into modular sections. Write your Prompt in sections to better instruct the AI model.
Structured Prompts are more legible for collaborators or those that remix your AI for their own apps.
Use a hashtag symbol (#
) to create a header. The header is a section in your Prompt. Anything you type below that header becomes part of that section.
Optionally, create sub-headers using two or three hashtag symbols to organize your Prompt further.
Markdown Headings | Heading Level |
---|---|
Heading 1 |
|
Heading 2 |
|
Heading 3 |
|
Create a list to organize information.
An unordered list presents information in no particular order. To create an unordered list, use dashes (-
), asterisks (*
), or plus signs (+
) in front of each line item.
- First item
- Second item
- Third item
An ordered list presents information in a specific order for the AI model to process. Unlike the unordered list, the ordered list uses a numerical system to list out line items.
1. First item
2. Second item
3. Third item
Optionally create sub-lists to further organize information. To create sub-lists, indent the sublist items with two spaces.
1. First item
- Sub-item 1
- Sub-item 2
2. Second item
3. Third item
Use bolded text to emphasize a section of your Prompt. Bolded text also makes your Prompt more legible for collaborators in your AI.
Create bolded text by using double asterisks (*
) around the text to bold.
Less frequently used Markdown syntax can help provide examples to the AI model of different types of components or how to generate its output. Examples in your Prompt can help ensure that the initial AI model response is consistent with your instructions.
For example, if you need the AI response to be formatted inside a table, add an example of a table in your Prompt.
Purpose | Example |
---|---|
Table |
|
Task List |
|
Link |
|
Image |
|
Image URL |
|
For more information on Markdown, see the Markdown Cheatsheet.