Display all the text formats and markdowns
- User
Display all the text formats and markdowns
- Assistant
Display all the text formats and markdowns
Markdown is a lightweight markup language used to format plain text, making it easy to write and read documents that can be converted to HTML and other formats. Below is a comprehensive guide to the various text formats and markdown syntaxes you can use to structure and style your content.
Create headings by starting a line with one or more hash symbols #, followed by a space.
Syntax:
# Heading Level 1
## Heading Level 2
### Heading Level 3
#### Heading Level 4
##### Heading Level 5
###### Heading Level 6
Rendered Output:
Syntax: Surround text with single asterisks * or underscores _.
*Italic Text*
_Italic Text_
Rendered Output: Italic Text
Syntax: Surround text with double asterisks ** or double underscores __.
**Bold Text**
__Bold Text__
Rendered Output: Bold Text
Syntax: Combine three asterisks *** or underscores ___.
***Bold and Italic Text***
___Bold and Italic Text___
Rendered Output: Bold and Italic Text
Create blockquotes using the greater-than symbol >.
Syntax:
> This is a blockquote.
>
> It can span multiple paragraphs.
Rendered Output:
This is a blockquote.
It can span multiple paragraphs.
Syntax: Start each item with a dash -, plus +, or asterisk * followed by a space.
- Item One
- Item Two
- Subitem
* Another Item
+ Subitem
Rendered Output:
Syntax: Use numbers followed by a period ..
1. First Item
2. Second Item
1. Subitem
2. Subitem
3. Third Item
Rendered Output:
Syntax: Wrap code within backticks `.
Use the `printf()` function.
Rendered Output: Use the printf() function.
Syntax: Use triple backticks ``` or indent lines with four spaces.
def function(): print("Hello, World!")
Rendered Output:
def function():
print("Hello, World!")
Create horizontal lines to separate content.
Syntax: Use three or more asterisks ***, dashes ---, or underscores ___ on a line by themselves.
---
***
___
Rendered Output:
Syntax: [Link Text](URL "Optional Title")
[OpenAI](https://www.openai.com "OpenAI's Homepage")
Rendered Output: OpenAI
Syntax:
[Link Text][label]
[label]: URL "Optional Title"
[Visit OpenAI][1]
[1]: https://www.openai.com "OpenAI's Homepage"
Rendered Output: Visit OpenAI
Insert images similarly to links but with an exclamation mark ! at the beginning.
Syntax: 

Rendered Output:
[image: Markdown Logo] open
Create tables using pipes | and hyphens -.
Syntax:
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Data 1 | Data 2 | Data 3 |
| Data A | Data B | Data C |
Rendered Output:
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Data 1 | Data 2 | Data 3 |
| Data A | Data B | Data C |
Strike through text using double tildes ~~.
Syntax:
~~This text is struck through.~~
Rendered Output: This text is struck through.
Create checklists using hyphens - and square brackets [ ] or [x].
Syntax:
- [x] Completed Task
- [ ] Pending Task
- [ ] Another Task
Rendered Output:
Add footnotes to your text (supported in some Markdown processors).
Syntax:
Here is a statement with a footnote.[^1]
[^1]: This is the footnote explanation.
Rendered Output:
Here is a statement with a footnote.1
Definition lists associate terms with definitions (not standard in all Markdown flavors).
Syntax:
Term 1
: Definition of Term 1
Term 2
: Definition of Term 2
Rendered Output:
Term 1
Definition of Term 1
Term 2
Definition of Term 2
Include raw HTML for advanced formatting (may not be supported in all Markdown viewers).
Syntax:
<span style="color: blue;">This text is blue.</span>
Rendered Output: This text is blue.
Add comments that won't appear in the rendered output.
Syntax:
[//]: # (This is a comment.)
Display Markdown characters literally by escaping them with a backslash \.
Syntax:
Use a backslash `\` to escape characters like \*, \_, \`, \{ \}, \[ \], \( \), \#, \+, \-, \., and \!.
Rendered Output:
Use a backslash \ to escape characters like *, _, `, { }, [ ], ( ), #, +, -, ., and !.
Some Markdown processors automatically convert URLs into links.
Syntax:
Visit https://www.example.com for more information.
Rendered Output:
Visit https://www.example.com for more information.
Insert emojis using shortcodes (supported in GitHub Flavored Markdown and others).
Syntax:
Let's celebrate! :tada: :smile:
Rendered Output:
Let's celebrate! 🎉 😄
Include mathematical notation using LaTeX syntax (supported in some Markdown processors like MathJax).
Syntax:
Euler's formula is expressed as $e^{i\pi} + 1 = 0$.
Rendered Output:
Euler's formula is expressed as (e^{i\pi} + 1 = 0).
Syntax:
$$
\int_{a}^{b} f(x)\,dx = F(b) - F(a)
$$
Rendered Output:
Link to specific sections within a document.
Creating an Anchor:
<a name="section-name"></a>
## Section Title
Linking to the Anchor:
[Go to Section](#section-name)
Alternative Heading IDs (GitHub Flavored Markdown):
## Section Title {#custom-id}
Rendered Output:
Specify the language for code blocks to enable syntax highlighting.
Syntax:
```javascript
function greet() {
console.log("Hello, world!");
}
Rendered Output:
function greet() {
console.log("Hello, world!");
}
Use HTML entities to display special characters.
Syntax:
10 < 20 and 5 > 2
Rendered Output:
10 < 20 and 5 > 2
Insert a line break by ending a line with two or more spaces.
Syntax:
First Line
Second Line
Rendered Output:
First Line
Second Line
Embed videos and audio using HTML tags (since Markdown doesn't support them natively).
Syntax:
<video src="video.mp4" controls></video>
<audio src="audio.mp3" controls></audio>
Prevent automatic embedding or previews in some platforms by wrapping URLs in < and >.
Syntax:
Don't embed: <https://www.example.com>
Rendered Output:
Don't embed: https://www.example.com
Note: The availability and rendering of these features may vary depending on the Markdown processor or platform you are using (e.g., GitHub, Markdown.pl, CommonMark, etc.). Always check the specific documentation for the Markdown flavor supported by your platform.
By understanding and utilizing these Markdown syntaxes, you can effectively format and structure your documents for clarity and enhanced readability.
This is the footnote explanation. ↩