Hexo Blog Markdown Syntax Test

Welcome to this article designed specifically to test the Markdown rendering capabilities of your Hexo blog. This article covers various aspects of Markdown syntax to ensure your blog can correctly display all content.

alt text

Headers

Markdown supports six levels of headers, from <h1> to <h6>.

H1 Header

H2 Header

H3 Header

H4 Header

H5 Header
H6 Header

Paragraphs and Line Breaks

This is the first paragraph.
You can force a line break by leaving two spaces at the end of the line.
Like this.

This is the second paragraph.
Paragraphs are typically separated by an empty line.

Emphasis

You can use asterisks or underscores to emphasize text.

Italic text or italic text
Bold text or bold text
Bold and italic text or bold and italic text
Strikethrough text

Lists

Unordered Lists

  • Item one

  • Item two

    • Nested item 2.1

      • Nested item 2.1.1
  • Item three

Or using plus signs:

  • Item A

  • Item B

Or using hyphens:

  • Item X

  • Item Y

Ordered Lists

  1. First item

  2. Second item

    1. Nested ordered item 2.1

    2. Nested ordered item 2.2

  3. Third item

Blockquotes

This is a blockquote.
It can be used to quote text from other sources.

This is a multi-line blockquote.

This is a nested blockquote.

  • You can even include lists within it.

  • Item two.

Code

Inline Code

You can use backticks to display inline code, for example console.log("Hello, World!");.

Fenced Code Blocks

Use three backticks to create a code block, and you can specify the language for syntax highlighting.

// This is a JavaScript code example
function greet(name) {
    console.log(`Hello, ${name}!`);
}

greet("Markdown");
```python
# This is a Python code example
def factorial(n):
    if n == 0:
        return 1
    else:
        return n * factorial(n-1)

print(factorial(5))
```html
<!-- This is an HTML code example -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test Page</title>
</head>
<body>
    <h1>My Blog</h1>
</body>
</html>