Fix markdown rendering test file

This commit is contained in:
Test User 2026-02-15 02:35:24 +09:00
parent 70ce3506f4
commit 650d9da126
1 changed files with 88 additions and 82 deletions

View File

@ -1,82 +1,88 @@
# Markdown Rendering Test # Markdown Rendering Test
This file tests Gitea's ability to render various Markdown elements. This file tests Gitea's ability to render various Markdown elements.
## 1. Text Formatting ## 1. Text Formatting
*Italic*, **Bold**, ***Bold Italic***, ~~Strikethrough~~, \Inline Code *Italic*, **Bold**, ***Bold Italic***, ~~Strikethrough~~, `Inline Code`
## 2. Lists
### Unordered ## 2. Lists
- Item 1 ### Unordered
- Item 2 - Item 1
- Subitem 2.1 - Item 2
- Subitem 2.2 - Subitem 2.1
- Subitem 2.2
### Ordered
1. Step One ### Ordered
2. Step Two 1. Step One
3. Step Three 2. Step Two
3. Step Three
### Task List
- [x] Completed task ### Task List
- [ ] Incomplete task - [x] Completed task
- [ ] Incomplete task
## 3. Code Blocks
\\python ## 3. Code Blocks
def hello_world(): ```python
print('Hello, Gitea!') def hello_world():
\ print('Hello, Gitea!')
\\json ```
{
" key\: \value\, ```json
\list\: [1, 2, 3] {
} "key": "value",
\ "list": [1, 2, 3]
## 4. Tables }
| Feature | Supported | Notes | ```
| :--- | :---: | ---: |
| Tables | Yes | Left/Center/Right aligned | ## 4. Tables
| Code | Yes | Syntax highlighting | | Feature | Supported | Notes |
| Images | Yes | Should render | | :--- | :---: | ---: |
| Tables | Yes | Left/Center/Right aligned |
## 5. Blockquotes and Alerts | Code | Yes | Syntax highlighting |
> This is a standard blockquote. | Images | Yes | Should render |
> It can span multiple lines.
## 5. Blockquotes and Alerts
> [!NOTE] > This is a standard blockquote.
> This is a Gitea/GitHub style alert. > It can span multiple lines.
> [!WARNING] > [!NOTE]
> Proceed with caution! > This is a Gitea/GitHub style alert.
## 6. Links and Images > [!WARNING]
[Gitea Website](https://gitea.io) > Proceed with caution!
![Gitea Logo](https://gitea.io/images/gitea.png) ## 6. Links and Images
[Gitea Website](https://gitea.io)
## 7. Mathematical Formulas
Display Math: ![Gitea Logo](https://gitea.io/images/gitea.png)
d:\Project\GitBasedDevelopmentEnvironmentSetup \sqrt{3x-1}+(1+x)^2 d:\Project\GitBasedDevelopmentEnvironmentSetup
## 7. Mathematical Formulas
Inline Math: \=mc^2$ Display Math:
$$
## 8. Mermaid Diagrams \sqrt{3x-1}+(1+x)^2
\\mermaid $$
sequenceDiagram
participant Alice Inline Math: $E=mc^2$
participant Bob
Alice->>John: Hello John, how are you? ## 8. Mermaid Diagrams
loop Healthcheck ```mermaid
John->>John: Fight against hypochondria sequenceDiagram
end participant Alice
Note right of John: Rational thoughts <br/>prevail! participant Bob
John-->>Alice: Great! Alice->>John: Hello John, how are you?
John->>Bob: How about you? loop Healthcheck
Bob-->>John: Jolly good! John->>John: Fight against hypochondria
\ end
\\mermaid Note right of John: Rational thoughts <br/>prevail!
graph TD John-->>Alice: Great!
A[Start] --> B{Is it working?}; John->>Bob: How about you?
B -- Yes --> C[Great!]; Bob-->>John: Jolly good!
B -- No --> D[Debug]; ```
D --> B;
\EOF ```mermaid
graph TD
A[Start] --> B{Is it working?};
B -- Yes --> C[Great!];
B -- No --> D[Debug];
D --> B;
```