Markdown Cheatsheet
Markdown Cheatsheet
Section titled “Markdown Cheatsheet”This guide provides a quick reference for all the essential Markdown syntax you’ll need while working with documentation.
Basic Syntax
Section titled “Basic Syntax”Headings
Section titled “Headings”# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6Text Formatting
Section titled “Text Formatting”_Italic text_ or _Italic text_**Bold text** or **Bold text****_Bold and italic text_**~~Strikethrough text~~Unordered Lists
Section titled “Unordered Lists”- Item 1- Item 2 - Subitem 2.1 - Subitem 2.2
* Alternative bullet
- Another alternativeOrdered Lists
Section titled “Ordered Lists”1. First item2. Second item3. Third item 1. Subitem 3.1 2. Subitem 3.2[Link text](https://www.example.com)[Link with title](https://www.example.com "Title text")Images
Section titled “Images”Inline Code
Section titled “Inline Code”`inline code`Code Blocks
Section titled “Code Blocks”```javascriptconst greeting = "Hello, World!";console.log(greeting);```Blockquotes
Section titled “Blockquotes”> This is a blockquote>> > This is a nested blockquoteHorizontal Rules
Section titled “Horizontal Rules”---
---
---Advanced Syntax
Section titled “Advanced Syntax”Tables
Section titled “Tables”| Header 1 | Header 2 | Header 3 || -------- | -------- | -------- || Cell 1 | Cell 2 | Cell 3 || Cell 4 | Cell 5 | Cell 6 |Task Lists
Section titled “Task Lists”- [x] Completed task- [ ] Pending task- [ ] Another taskFootnotes
Section titled “Footnotes”Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.Escaping Characters
Section titled “Escaping Characters”\* Asterisk\` Backtick\# HashDocusaurus-Specific Features
Section titled “Docusaurus-Specific Features”Frontmatter
Section titled “Frontmatter”---sidebar_position: 1title: Page Title---
Content starts here...Admonitions
Section titled “Admonitions”:::tipThis is a tip!:::
:::noteThis is a note!:::
:::warningThis is a warning!:::
:::dangerThis is a danger message!:::import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';
<Tabs> <TabItem value="first" label="First Tab"> Content for first tab </TabItem> <TabItem value="second" label="Second Tab"> Content for second tab </TabItem></Tabs>Best Practices
Section titled “Best Practices”- Consistency: Use consistent formatting throughout your documentation
- Spacing: Add blank lines between different elements
- Lists: Use proper indentation for nested lists
- Links: Use descriptive link text
- Images: Always include alt text for accessibility
- Code: Specify the language for code blocks for proper syntax highlighting
Common Issues and Solutions
Section titled “Common Issues and Solutions”Line Breaks
Section titled “Line Breaks”To create a line break, end a line with two spaces or use <br> tag.
Lists with Code
Section titled “Lists with Code”When including code in lists, indent the code block with 8 spaces or 2 tabs.
Tables Alignment
Section titled “Tables Alignment”You can align table columns using colons:
| Left-aligned | Center-aligned | Right-aligned || :----------- | :------------: | ------------: |Remember: Markdown is designed to be readable even in its raw form. When in doubt, keep it simple and clear!