Fix markdown rendering test file
This commit is contained in:
parent
70ce3506f4
commit
650d9da126
|
|
@ -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,12 +58,14 @@ 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
|
||||||
|
|
@ -72,11 +77,12 @@ sequenceDiagram
|
||||||
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
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue