Markdown Lipsum

Generate Markdown Lorem Ipsum with optional elements.

API Usage

GET Endpoint: https://brettterpstra.com/md-lipsum/api/4/

Get all elements by using `/all` in the path. See below for specifying specific elements.

Specify number of paragraphs by including /XX in the path, e.g. /api/4/all/20 (default: 10).

Specify paragraph length by including verylong, long, medium, or short in the path, e.g. /api/4/long (default: medium).

Example:

curl 'https://brettterpstra.com/md-lipsum/api/4/all/20/short'

Parameters

You can specify what elements to include in the output by using additional path elements. The available elements are:

short, medium, long, and verylong can be shortened to s, m, l, and vl.

Additional Options

You can modify the output format using query parameters:

You can also use alternative sources for the random text by appending ?source=1984 to your URL.

Available Sources:

You can specify a style for the HTML output by appending ?style=style.css to your URL, with a URL encoded path or full URL to the style file.

Example:

curl 'https://brettterpstra.com/md-lipsum/api/4/s/10/dl/bq?html=true&complete=true&source=1984&style=%2Fmd-lipsum%2Fstylesheets%2Fpreview.css'