markdown.rest

A Simple RESTful MarkDown converter API. Supply plain-text MarkDown or base64 encoded MarkDown, receive either plain-text HTML or base64 encoded HTML.

Token:

You will get an API token as soon as you press the "Get token" button.


Usage:

Request


        curl https://api.markdown.rest/convert \
        -X POST \
        -H "Authorization: Bearer {your-token-here}"
        -d '{"content":"# Hello","returnBase64":true}'
        

Response


        {
            "error": null,
            "data": "PGgxPmhlbGxvPC9oMT4KPGgyPndvcmxkPC9oMj4>"
        }
        

Options

Options you can include in the json payload

Option
Type
Default
Required
content
string
null
Yes
isBase64
boolean
false
No
returnBase64
boolean
false
No