Markdown Cheatsheet

Admonition Blocks

example - Code Examples

๐Ÿ’ปConfiguration Example
---
title: My Blog Post
date: 2025-01-15
category: Development
tags: [Git, DevOps]
excerpt: "A concise description of the post content..."
---

Advanced Formatting Inside Blocks

Code Block Inside Admonition

๐Ÿ’กGit Configuration

Set up your Git identity:

git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"

Table Inside Admonition

๐Ÿ’กPort Ranges
OSRangeCount
Linux32768-6099928232
Windows49152-6553516384
macOS49152-6553516384

Nested Formatting

โŒCommon Pitfalls

Avoid these mistakes:

  1. Hardcoded paths
// โŒ Bad
const path = 'C:\\Users\\neo\\file.txt';
// โœ… Good
const path = require('path').join(__dirname, 'file.txt');
  1. Missing error handling
    • Always use try-catch blocks
    • Validate user input
    • Log errors properly
  2. Ignoring async/await

    Callbacks lead to โ€œcallback hellโ€. Use modern async patterns.