5 min read

Enhanced Markdown Features Showcase

Demonstration of all the enhanced markdown features including callouts, math equations, and better code blocks

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

factorial.js
// Example: Function to calculate factorial
function factorial(n) {
if (n === 0 || n === 1) {
return 1;
}
return n * factorial(n - 1);
}
console.log(factorial(5)); // Output: 120

Code Block with Line Highlighting

calculator.py
# Example: Python class for a simple calculator
class 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: 8

Code Block with Line Numbers and Highlighting

deploy.sh
#!/bin/bash
npm run build
rsync -avz dist/ user@server:/var/www/site/
echo "Deployment complete!"

Inline Code Diffs

app.js
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

types.ts
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 E=mc2E = mc^2 or display equations:

abf(x)dx=F(b)F(a)\int_{a}^{b} f(x) dx = F(b) - F(a)

Here’s the quadratic formula:

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Tables

FeatureDescriptionStatus
CalloutsInformation boxes✅ Active
MathLaTeX equations✅ Active
CodeSyntax highlighting✅ Active
ToCTable 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

  1. First item
  2. Second item
    1. Nested item
    2. Another nested item
  3. 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:

Placeholder Image

Inline Formatting

You can use bold text, italic text, bold and italic, strikethrough, and inline code.

Horizontal Rules


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!

Found this article helpful? Share it