forked from gogs/go-gogs-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Miscellaneous
无闻 edited this page Aug 18, 2015
·
6 revisions
POST /markdown
Name | Type | Description |
---|---|---|
text | string | Required The Markdown text to render |
mode | string | The rendering mode, can be empty or gfm . In gfm mode, Markdown will be rendered with repository context |
context | string | The repository context. Only taken into account when rendering mode is gfm
|
{
"text": "Hello world gogits/gogs#1 **cool**, and #1!",
"mode": "gfm",
"context": "gogits/gogs"
}
Status: 200 OK
Content-Type: text/html
<p>Hello world gogits/gogs#1 <strong>cool</strong>, and <a href="https://try.gogs.io:3000/gogits/gogs/issues/1" rel="nofollow">#1</a>!</p>
POST /markdown/raw
The raw API takes a Markdown document as plaintext(text/plain
) and renders it as plain Markdown without a repository context.
Status: 200 OK
Content-Type: text/html
<p>Hello world gogits/gogs#1 <strong>cool</strong>, and #1!</p>