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.
|
||||
|
||||
## 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,28 +58,31 @@ 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
|
||||
Alice->>John: Hello John, how are you?
|
||||
loop Healthcheck
|
||||
John->>John: Fight against hypochondria
|
||||
end
|
||||
Note right of John: Rational thoughts <br/>prevail!
|
||||
John-->>Alice: Great!
|
||||
John->>Bob: How about you?
|
||||
Bob-->>John: Jolly good!
|
||||
\
|
||||
\\mermaid
|
||||
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 <br/>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
|
||||
A[Start] --> B{Is it working?};
|
||||
B -- Yes --> C[Great!];
|
||||
B -- No --> D[Debug];
|
||||
D --> B;
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue