Complete Markdown Syntax Test
A comprehensive guide showcasing all Markdown syntax features with live examples for testing and reference
Complete Markdown Syntax Guide
This comprehensive guide demonstrates all Markdown syntax features available on this blog. Perfect for testing formatting and as a reference for future posts.
Table of Contents
- Headers
- Text Formatting
- Lists
- Links and Images
- Code
- Tables
- Blockquotes
- Horizontal Rules
- Advanced Features
Headers
Markdown supports six levels of headers using # symbols:
Header 1 (H1)
Header 2 (H2)
Header 3 (H3)
Header 4 (H4)
Header 5 (H5)
Header 6 (H6)
Text Formatting
Basic Formatting
Bold text using **bold** or __bold__
Italic text using *italic* or _italic_
Bold and italic using ***bold italic***
Strikethrough using ~~strikethrough~~
Special Characters
You can escape special characters with backslash: *not italic*
Subscript and Superscript
H2O (subscript using ~)
E=mc^2^ (superscript using ^)
Lists
Unordered Lists
- First item
- Second item
- Nested item 1
- Nested item 2
- Deeply nested item
- Third item
Ordered Lists
- First ordered item
- Second ordered item
- Nested ordered item
- Another nested item
- Third ordered item
Task Lists
- Completed task
- Incomplete task
- Another completed task
- Nested incomplete task
- Nested completed task
Links and Images
Links
URLs automatically become links: https://deluxesyrup.github.io/
Images
Code
Inline Code
Use backticks for inline code. Here’s a variable: const name = 'Syrup'
Code Blocks
JavaScript
function greetUser(name) {
console.log(`Hello, ${name}!`);
return `Welcome to ${name}'s blog`;
}
const user = 'Syrup';
greetUser(user);
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Syrup's Blog</title>
</head>
<body>
<h1>Welcome to my blog!</h1>
<p>This is a test HTML snippet.</p>
</body>
</html>
CSS
.blog-post {
max-width: 800px;
margin: 0 auto;
padding: 2rem;
font-family: 'Inter', sans-serif;
}
.dark-mode {
background-color: #1a1a1a;
color: #ff69b4;
}
Python
def fibonacci(n):
"""Generate Fibonacci sequence up to n"""
if n <= 0:
return []
elif n == 1:
return [0]
sequence = [0, 1]
while len(sequence) < n:
sequence.append(sequence[-1] + sequence[-2])
return sequence
# Generate first 10 Fibonacci numbers
result = fibonacci(10)
print(result)
Terminal/Shell
# Clone the repository
git clone https://github.com/DeluxeSyrup/deluxe-syrup.git
# Navigate to project directory
cd deluxe-syrup
# Install dependencies
npm install
# Start development server
npm run dev
Tables
Basic Table
| Feature | Supported | Notes |
|---|---|---|
| Headers | ✅ | H1-H6 available |
| Bold | ✅ | Using **text** |
| Italic | ✅ | Using *text* |
Code | ✅ | Inline and blocks |
| Links | ✅ | Multiple formats |
Advanced Table
| Language | Difficulty | Learning Time | Popularity | Use Cases |
|---|---|---|---|---|
| HTML | ⭐ | 1-2 weeks | ⭐⭐⭐⭐⭐ | Web structure |
| CSS | ⭐⭐ | 2-4 weeks | ⭐⭐⭐⭐⭐ | Web styling |
| JavaScript | ⭐⭐⭐ | 2-6 months | ⭐⭐⭐⭐⭐ | Web interactivity |
| TypeScript | ⭐⭐⭐⭐ | 1-3 months | ⭐⭐⭐⭐ | Type-safe JS |
| Python | ⭐⭐ | 1-3 months | ⭐⭐⭐⭐⭐ | Backend, AI, Data |
Table with Alignment
| Left Aligned | Center Aligned | Right Aligned |
|---|---|---|
| Default | Centered | Right |
| Text | Content | 123 |
| More | Data | 456.78 |
Blockquotes
Simple Blockquote
This is a simple blockquote. It can span multiple lines and will be styled consistently across the blog.
Nested Blockquote
This is the first level of quotation.
This is a nested blockquote inside the first one.
It can contain bold, italic, and even
code.
Blockquote with Attribution
“The best way out is always through.”
— Robert Frost
Complex Blockquote
Important Note: This blockquote contains multiple formatting elements:
- Bold text for emphasis
- Italic text for style
Inline codefor technical terms- Links for references
It demonstrates how blockquotes can contain rich content while maintaining readability.
Horizontal Rules
You can create horizontal rules using three or more hyphens, asterisks, or underscores:
Advanced Features
Definition Lists
Term 1 : Definition for term 1
Term 2 : Definition for term 2 : Another definition for term 2
Footnotes
Here’s a sentence with a footnote1. And here’s another one2.
Abbreviations
The HTML specification is maintained by the W3C.
*[HTML]: HyperText Markup Language *[W3C]: World Wide Web Consortium
Keyboard Keys
Press Ctrl + C to copy text.
Use Cmd + V on Mac to paste.
Math Expressions (not supported yet)
Inline math: $E = mc^2$
Block math: $$ \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} $$
Emoji Support (not supported yet)
Markdown supports emoji shortcuts:
- :smile:
:smile: - :heart:
:heart: - :rocket:
:rocket: - :computer:
:computer: - :coffee:
:coffee: - :books:
:books:
Testing Section
This section is specifically for testing various combinations:
Mixed Formatting Test
Here’s a paragraph with bold, italic, bold italic, strikethrough, and inline code all together. It also includes a link and an emoji :sparkles:.
Code in Lists
- Install Node.js:
npm install - Run the development server:
npm run dev - Open browser to
http://localhost:4321
Tables with Code
| Command | Description | Example |
|---|---|---|
git add | Stage changes | git add . |
git commit | Commit changes | git commit -m "message" |
git push | Push to remote | git push origin main |