Kramdown Web Service / HTTP JSON(P) API

Render Markdown

GET /markdown

Input:

Example (HTML): GET /markdown?text=Hello+World!

Response:

Status: 200 OK
Content-Type: text/html

<p>Hello World!<p>

Example (LaTeX): GET /markdown?text=Hello+World!&to=latex

Response:

Status: 200 OK
Content-Type: text/latex

Hello World

Render Markdown (Babelmark2-Style)

GET /babelmark

Input:

Example: GET /babelmark?text=Hello+World!

Response:

Status: 200 OK
Content-Type: application/json

{
  'name': 'kramdown',
  'html': '<p>Hello World!<p>',
  'version': '1.10.0'
}