test-repo/rendering_test.md

1.6 KiB

Markdown Rendering Test

This file tests Gitea's ability to render various Markdown elements.

1. Text Formatting

Italic, Bold, Bold Italic, Strikethrough, Inline Code

2. Lists

Unordered

  • Item 1
  • Item 2
    • Subitem 2.1
    • Subitem 2.2

Ordered

  1. Step One
  2. Step Two
  3. Step Three

Task List

  • Completed task
  • Incomplete task

3. Code Blocks

def hello_world():
    print('Hello, Gitea!')
{
  "key": "value",
  "list": [1, 2, 3]
}

4. Tables

Feature Supported Notes
Tables Yes Left/Center/Right aligned
Code Yes Syntax highlighting
Images Yes Should render

5. Blockquotes and Alerts

This is a standard blockquote. It can span multiple lines.

[!NOTE] This is a Gitea/GitHub style alert.

[!WARNING] Proceed with caution!

Gitea Website

Gitea Logo

7. Mathematical Formulas

Display Math:


\sqrt{3x-1}+(1+x)^2

Inline Math: E=mc^2

8. Mermaid Diagrams

sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail!
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!
graph TD
    A[Start] --> B{Is it working?};
    B -- Yes --> C[Great!];
    B -- No --> D[Debug];
    D --> B;