markdown
A API de Markdown permite que você interprete um documento de markdown como uma página HTML ou como texto não processado.
Render a Markdown document
Parâmetros
| Headers |
|---|
| Nome, Tipo, Descrição |
acceptstringSetting to |
| Body parameters |
| Nome, Tipo, Descrição |
textstringObrigatórioThe Markdown text to render in HTML. |
modestringThe rendering mode. Can be either Padrão: Pode ser uma das ações a seguir: |
contextstringThe repository context to use when creating references in |
HTTP response status codes
| Status code | Descrição |
|---|---|
200 | OK |
304 | Not modified |
Amostras de código
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token <TOKEN>" \
https://HOSTNAME/api/v3/markdownResponse
Status: 200Render a Markdown document in raw mode
You must send Markdown as plain text (using a Content-Type header of text/plain or text/x-markdown) to this endpoint, rather than using JSON format. In raw mode, GitHub Flavored Markdown is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.
HTTP response status codes
| Status code | Descrição |
|---|---|
200 | OK |
304 | Not modified |