You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Miscellaneous/README.md
+3-5
Original file line number
Diff line number
Diff line change
@@ -13,16 +13,14 @@ POST /markdown
13
13
|Name|Type|Description|
14
14
|----|----|-----------|
15
15
|text|string|**Required** The Markdown text to render|
16
-
|mode|string|The rendering mode, can be empty or **gfm**. In **gfm** mode, Markdown will be rendered with repository context|
17
-
|context|string|The repository context. Only taken into account when rendering mode is **gfm**|
16
+
|context|string|The repository context, e.g. `https://github.com/gogs/gogs`|
18
17
19
18
### Example
20
19
21
20
```json
22
21
{
23
22
"text": "Hello world gogs/gogs#1 **cool**, and #1!",
24
-
"mode": "gfm",
25
-
"context": "gogs/gogs"
23
+
"context": "https://github.com/gogs/gogs"
26
24
}
27
25
```
28
26
@@ -33,7 +31,7 @@ Status: 200 OK
33
31
Content-Type: text/html
34
32
```
35
33
```html
36
-
<p>Hello world gogs/gogs#1 <strong>cool</strong>, and <ahref="https://try.gogs.io/gogs/gogs/issues/1"rel="nofollow">#1</a>!</p>
34
+
<p>Hello world <ahref="https://try.gogs.io/gogs/gogs/issues/1"rel="nofollow">gogs/gogs#1</a> <strong>cool</strong>, and <ahref="https://github.com/gogs/gogs/issues/1"rel="nofollow">#1</a>!</p>
0 commit comments