Markdown Format Test

1 min read

Markdown Format Test

This article demonstrates how various Markdown format elements render on this blog.

1. Basic Text Formatting

Bold text and italic text

Bold and italic text

Strikethrough text

Underlined text

2. Lists

Unordered Lists

  • Item 1
  • Item 2
    • Sub-item 2.1
    • Sub-item 2.2
  • Item 3

Ordered Lists

  1. First step
  2. Second step
    1. Sub-step 2.1
    2. Sub-step 2.2
  3. Third step

Task Lists

  • Completed task
  • Incomplete task
  • Another incomplete task

Hugo Official Website

Hugo Logo

4. Blockquotes

This is a quoted text.

This is the second paragraph of the quote.

5. Code

Inline code print("Hello, World!")

Code blocks:

def greet(name):
    """
    A simple greeting function
    """
    print(f"Hello, {name}!")

# Call the function
greet("World")
// JavaScript code example
function calculateSum(a, b) {
  return a + b;
}

console.log(calculateSum(5, 10)); // Output: 15

6. Tables

NameAgeProfession
John25Engineer
Lisa30Designer
Mike28Product Manager

7. Horizontal Rules


8. Math Equations

Inline equation: $E = mc^2$

Block equation:

$$ \frac{d}{dx}(x^n) = nx^{n-1} $$

9. Footnotes

This is a text with a footnote1.

10. Definition Lists

Term 1
Definition 1
Term 2
Definition 2a
Definition 2b

  1. This is the footnote content. ↩︎

Last updated on 2025-03-23