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

\python def hello_world(): print('Hello, Gitea!')
\json { " 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: d:\Project\GitBasedDevelopmentEnvironmentSetup \sqrt{3x-1}+(1+x)^2 d:\Project\GitBasedDevelopmentEnvironmentSetup

Inline Math: =mc^2$

8. Mermaid Diagrams

\mermaid 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
prevail! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!
\mermaid graph TD A[Start] --> B{Is it working?}; B -- Yes --> C[Great!]; B -- No --> D[Debug]; D --> B; \EOF