kramdown Online Editor

HTTP JSON API ServiceAbout

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'
}
Questions? Comments? | kramdown-service/0.3.0 using kramdown/1.10.0 - Ruby/2.2.4 (2015-12-16/x86_64-linux) on Sinatra/1.4.7 (production)