Complete Markdown Syntax Reference
Section Headings
Define document hierarchy using hash symbols prefixing the line:
# Level One Heading
## Level Two Heading
### Level Three Heading
#### Level Four Heading
##### Level Five Heading
###### Level Six Heading
Text Emphasis
Apply stylistic formatting using asterisks or underscores interchangeably.
Italic text uses single delimiters:
*Italic*
_Italic_
Bold text requires double delimiters:
**Bold**
__Bold__
Combined emphasis creates bold italic styling:
***Bold Italic***
___Bold Italic___
Strikethrough and Underlining
Mark deprecated or deleted content using double tilde pairs:
~~obsolete feature~~
To underlined text, embed HTML tags:
<u>Highlighted passage</u>
Thematic Breaks
Create horizontal separators using three or more consecutive hyphens, asterisks, or underscores:
---
***
___
Footnotes
Rfeerence supplementary material using bracketed caret notation:
Software development requires robust testing methodologies[^1].
[^1]: See Martin Fowler's articles on continuous integration.
Lists
Unordered Lists
Initiate bullet points using -, +, or * followed by a mandatory space:
- First element
+ Second element
* Third element
Ordered Lists
Enumerate items using numerals with periods:
1. Initialize repository
2. Stage modifications
3. Commit changes
Nested Structures
Indent child elements using four spaces or a single tab character:
1. Parent item
- Child element
- Another child
1. Grandchild node
2. Grandchild node
2. Subsequent parent
Block Quotations
Highlight extracted content using right-angle brackets:
> Single line citation
Nest multiple levels using repeated brackets:
> Primary context
> > Secondary context
> > > Tertiary context
Integrate with lists by respecting indentation levels:
- Main point
> Supporting quotation
> Additional line
Code Presentation
Inline Code
Enclose short snippets within backtick delimiters:
Invoke the `calculateSum()` method
Fenced Code Blocks
Indent content by four spaces or encapsulate using triple backticks with optional language identifiers:
function validateInput(data) {
return data !== null && data.length > 0;
}
Syntax-highlighted examples:
fn main() {
let greeting: &str = "Hello, World!";
println!("{}", greeting);
}
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n-1) + fibonacci(n-2)
Hyperlinks
Descriptive Links
Conceal URLs behind meaningful text:
Consult the [Rust Programming Language Book](https://doc.rust-lang.org/book/)
Explicit URLs
Display raw addresses using angle brackets:
Repository location: <https://github.com/rust-lang/rust>
Image Integration
Standard Embedding
Insert graphics using exclamation-mark prefixed syntax:

HTML-based Control
Adjust dimensions using image tags:
<img src="diagram.png" alt="Architecture flow" width="600" />
Data Tables
Construct tabular layouts using pipes and hyphens, specifying alignment via colon placement:
| Command | Description | Status |
|:-------------|-------------------:|:------:|
| `git add` | Stage files | Active |
| `git commit` | Record snapshot | Active |
| `git push` | Upload to remote | Active |
Alignment conventions:
:---Left alignment (default)---:Right alignment:--:Center alignment
Advanced Elements
Keyboard Input
Represent keystroke combinations using HTML tags:
Press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> for command palette
Escaped Characters
Display literal reserved symbols using backslash prefixes:
\* \_ \` \# \+ \- \. \! \[ \] \( \) \{ \}
Mathematical Notation
Render equations using LaTeX syntax with in double dollar signs:
$$
E = mc^2
$$
$$
\int_{a}^{b} f(x) \, dx = F(b) - F(a)
$$
Document Navigation
Generate automatic table of contents:
[TOC]