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

@ -3,7 +3,8 @@
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 ## 2. Lists
### Unordered ### Unordered
- Item 1 - Item 1
@ -21,16 +22,18 @@ This file tests Gitea's ability to render various Markdown elements.
- [ ] Incomplete task - [ ] Incomplete task
## 3. Code Blocks ## 3. Code Blocks
\\python ```python
def hello_world(): def hello_world():
print('Hello, Gitea!') print('Hello, Gitea!')
\ ```
\\json
```json
{ {
" key\: \value\, "key": "value",
\list\: [1, 2, 3] "list": [1, 2, 3]
} }
\ ```
## 4. Tables ## 4. Tables
| Feature | Supported | Notes | | Feature | Supported | Notes |
| :--- | :---: | ---: | | :--- | :---: | ---: |
@ -55,28 +58,31 @@ def hello_world():
## 7. Mathematical Formulas ## 7. Mathematical Formulas
Display Math: Display Math:
d:\Project\GitBasedDevelopmentEnvironmentSetup \sqrt{3x-1}+(1+x)^2 d:\Project\GitBasedDevelopmentEnvironmentSetup $$
\sqrt{3x-1}+(1+x)^2
$$
Inline Math: \=mc^2$ Inline Math: $E=mc^2$
## 8. Mermaid Diagrams ## 8. Mermaid Diagrams
\\mermaid ```mermaid
sequenceDiagram sequenceDiagram
participant Alice participant Alice
participant Bob participant Bob
Alice->>John: Hello John, how are you? Alice->>John: Hello John, how are you?
loop Healthcheck loop Healthcheck
John->>John: Fight against hypochondria John->>John: Fight against hypochondria
end end
Note right of John: Rational thoughts <br/>prevail! Note right of John: Rational thoughts <br/>prevail!
John-->>Alice: Great! John-->>Alice: Great!
John->>Bob: How about you? John->>Bob: How about you?
Bob-->>John: Jolly good! Bob-->>John: Jolly good!
\ ```
\\mermaid
```mermaid
graph TD graph TD
A[Start] --> B{Is it working?}; A[Start] --> B{Is it working?};
B -- Yes --> C[Great!]; B -- Yes --> C[Great!];
B -- No --> D[Debug]; B -- No --> D[Debug];
D --> B; D --> B;
\EOF ```