v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-03-2585861610.1 MB
markdown

Render a Markdown document

post/markdown

Request body

textstring required

The Markdown text to render in HTML.

mode'markdown' | 'gfm'

The rendering mode.

contextstring

The repository context to use when creating references in gfm mode. For example, setting context to octo-org/octo-repo will change the text #42 into an HTML link to issue 42 in the octo-org/octo-repo repository.

Example request

{
  "mode": "markdown"
}

Response

Response