# Render a Markdown document in raw mode

From **GitHub v3 REST API**.

`POST /markdown/raw`

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](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.

## Request body

- Required: false
### `text/plain`

- Type: `string`

```json
{"type":"string"}
```

### `text/x-markdown`

- Type: `string`

```json
{"type":"string"}
```

## Responses

### `200`

Response

#### Headers

##### `X-CommonMarker-Version`

- Type: `string`

- Example: `0.17.4`

### `text/html`

- Type: `string`

```json
{"type":"string"}
```

### `304`

Not modified

## Request examples

### cURL

```shell
curl --request POST \
  --url {protocol}://{hostname}/api/v3/markdown/raw \
  --header 'content-type: text/plain' \
  --data 'string'
```
