GFM Test Document

🌐 English, 中文

This document tests all supported GitHub-Flavored Markdown (GFM) syntax features and their rendering results in HTML for the wklchris/markdown-css-for-pandoc repository.

This is an illustrative webpage but not a user guide. For the user guide, see ReadMe in the repo.


Table of Contents:

1. Title Examples

H1

H2

H3

H4

H5
H6

2. Inline Markers

3. Footnotes

This is an example with a footnote1.

4. Blockquotes

This is a blockquote Can be used multiline

Quote indentation

Ending line

5. Alerts (Admonitions)

Note:

Note

This is a note alert

Tip:

Tip

This is a tip alert

Important:

Important

This is an important alert

Warning:

Warning

This is a warning alert

Caution:

Caution

This is a caution alert

6. Code Blocks

Regular Code Block

Single line:

text = "Code block"

No syntax highlighting:

int main() {
    return 0;
}

With syntax highlighting:

from pathlib import Path

def hello():
    # Function comments
    print("Hello, World!")

Inline Code

A paragraph of text.

Use git status command to check the status.

Another paragraph of text.

8. Lists

Unordered List

Test unordered list:

Ordered List

Test ordered list:

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

Paragraph after ordered list.

Task List

Test task list:

Paragraph after task list.

9. Figures

Test image:

Test Image

Test table:

Left-aligned Centered Right-aligned
Data1 Data2 Data3
Data4 Data5 Data6

Paragraph after table.

10. Mathematical Formulas

Inline formula: \(E=mc^2\)

Block formula:

\[ A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \\ \end{pmatrix} \]

Another block formula:

\[ a^2 + b^2 = c^2 \]

Paragraph after formula.

11. Misc

Collapsable <details>

Title: Click to expand/collapse and view details Here is the expanded detailed content.

Paragraph after collapse syntax block.


  1. This is the footnote content. GFM supports footnote syntax.â†Šī¸Ž