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.
## 1. Text Formatting
*Italic*, **Bold**, ***Bold Italic***, ~~Strikethrough~~, \Inline Code
*Italic*, **Bold**, ***Bold Italic***, ~~Strikethrough~~, `Inline Code`
## 2. Lists
### Unordered
- Item 1
@ -21,16 +22,18 @@ This file tests Gitea's ability to render various Markdown elements.
- [ ] Incomplete task
## 3. Code Blocks
\\python
```python
def hello_world():
print('Hello, Gitea!')
\
\\json
```
```json
{
" key\: \value\,
\list\: [1, 2, 3]
"key": "value",
"list": [1, 2, 3]
}
\
```
## 4. Tables
| Feature | Supported | Notes |
| :--- | :---: | ---: |
@ -55,12 +58,14 @@ def hello_world():
## 7. Mathematical Formulas
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
\\mermaid
```mermaid
sequenceDiagram
participant Alice
participant Bob
@ -72,11 +77,12 @@ sequenceDiagram
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
\
\\mermaid
```
```mermaid
graph TD
A[Start] --> B{Is it working?};
B -- Yes --> C[Great!];
B -- No --> D[Debug];
D --> B;
\EOF
```