Skip to content
无闻 edited this page Aug 18, 2015 · 6 revisions

Miscellaneous

Markdown

Render an arbitrary Markdown document

POST /markdown

Parameters

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

Render a Markdown document in raw mode

POST /markdown/raw

Parameters

The raw API takes a Markdown document as plaintext(text/plain) and renders it as plain Markdown without a repository context.

Response

Status: 200 OK
Content-Type: text/html
<p>Hello world gogits/gogs#1 <strong>cool</strong>, and #1!</p>
Clone this wiki locally