---
title: Markdown Lipsum v2
date: 2024-06-17 12:04
slug: markdown-lipsum-v2
categories:
- Blog
- Code
tags:
- markdown
- lipsum
- api
---

[prev]: /2024/06/14/a-markdown-lorem-ipsum-api/
[md-lipsum]: /md-lipsum/
[Loripsum.net]: https://loripsum.net/

I know it's been [less than a week][prev] since v1, but I made some major changes to [md-lipsum] that warrant a version 2.

Basically, I incorporated all of the API options from [Loripsum.net], meaning you can now specify how many paragraphs and what elements are included. You can still get a full Markdown document with all elements using <https://brettterpstra.com/md-lipsum/api/2/all>. You can include `/short`, `/medium`, `/long`, or `/verylong` in the path to determine paragraph length (can be shortened to `s`, `m`, `l`, `vl`), and/or a number to determine the number of paragraphs. More paragraphs means more header levels, too. Example:

```
curl 'https://brettterpstra.com/md-lipsum/api/2/all/10/m'
```

> If no parameters are given, e.g. the path is just `/api/2`, then all elements will be output with 5 paragraphs of medium length.
{:.tip}

You can also control exactly what elements are included using additional path parameters. These are detailed on the [project page][md-lipsum].

Have fun!

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
