Introduction
This article showcases all the enhanced markdown features available on this site. From callout boxes to mathematical equations, this guide will help you understand what’s possible.
Callout Boxes
Callout boxes are perfect for highlighting important information. Here are all the available types:
Important Note This is a note callout box. Use it for general information and reminders that readers should pay attention to.
Pro Tip This is a tip callout box. Perfect for sharing helpful suggestions, best practices, or shortcuts.
Warning This is a warning callout box. Use it to alert readers about potential issues or things they should be careful about.
Danger Zone This is a danger callout box. Reserve this for critical warnings about actions that could cause problems or data loss.
Additional Information This is an info callout box. Great for supplementary details or context that enhances understanding.
Code Blocks
Our code blocks now support advanced features like file names, line numbers, and line highlighting:
Basic Code Block with File Name
// Example: Function to calculate factorialfunction factorial(n) { if (n === 0 || n === 1) { return 1; } return n * factorial(n - 1);}
console.log(factorial(5)); // Output: 120Code Block with Line Highlighting
# Example: Python class for a simple calculatorclass Calculator: def add(self, a, b): return a + b
def multiply(self, a, b): return a * b
calc = Calculator()print(calc.add(5, 3)) # Output: 8Code Block with Line Numbers and Highlighting
#!/bin/bashnpm run buildrsync -avz dist/ user@server:/var/www/site/echo "Deployment complete!"Inline Code Diffs
const API_URL = 'http://localhost:3000';const API_URL = process.env.API_URL || 'http://localhost:3000';
function fetchData() { return fetch(API_URL + '/api/data'); return fetch(`${API_URL}/api/data`, { headers: { 'Authorization': `Bearer ${token}` } });}TypeScript with Errors Highlighted
interface User { id: number; name: string; email: string;}
type UserID = string;type UserEmail = string;type UserData = { id: UserID; email: UserEmail };
function getUser(id: number): User { // Implementation here}Mathematical Equations
You can write inline math like or display equations:
Here’s the quadratic formula:
Tables
| Feature | Description | Status |
|---|---|---|
| Callouts | Information boxes | ✅ Active |
| Math | LaTeX equations | ✅ Active |
| Code | Syntax highlighting | ✅ Active |
| ToC | Table of Contents | ✅ Active |
Enhanced Blockquotes
Regular blockquotes still work great:
“The only way to do great work is to love what you do.” — Steve Jobs
Lists and Task Lists
Ordered List
- First item
- Second item
- Nested item
- Another nested item
- Third item
Unordered List
- Item one
- Item two
- Nested bullet
- Another nested bullet
- Item three
Task List
- Implement callout boxes
- Add math support
- Enhance code blocks
- Add diagram support
- Implement image galleries
Images
Images have hover effects and are optimized for viewing:
Inline Formatting
You can use bold text, italic text, bold and italic, strikethrough, and inline code.
Horizontal Rules
Links
Both internal links and external links are supported, with external links automatically opening in new tabs.
Conclusion
These enhanced markdown features make it easier to create rich, informative content. Try using them in your own articles!
Getting Started Start with callout boxes to highlight key information, then add code examples with syntax highlighting. Math support is great for technical articles!