/lorem-markdownum

A lorem ipsum generator for markdown

Primary LanguageHaskellOtherNOASSERTION

lorem-markdownum

http://jaspervdj.be/lorem-markdownum/

Introduction

Lorem Markdownum is a lorem ipsum generator for markdown.

HTTP API

An HTTP API is available. You can use it by sending a GET request to /markdown.txt.

$ curl 'https://jaspervdj.be/lorem-markdownum/markdown.txt'
# In diva in Alcides cumque postquam reserato

## Proxima bellare te tractata Atrides exercet

Lorem markdownum, aequent vocem dixit tamen quidem crimine in maris protinus
moror *telluris* magno, marinae Latonae. Opaca tamquam ligari!

...

Arguments can be passed as query parameters, e.g.:

$ curl 'https://jaspervdj.be/lorem-markdownum/markdown.txt?underline-headers=on'
In diva in Alcides cumque postquam reserato
===========================================

Proxima bellare te tractata Atrides exercet
-------------------------------------------

Lorem markdownum, aequent vocem dixit tamen quidem crimine in maris protinus
moror *telluris* magno, marinae Latonae. Opaca tamquam ligari!

...

These are the supported parameters:

  • no-headers
  • no-code
  • no-quotes
  • no-lists
  • no-inline-markup
  • reference-links
  • no-external-links
  • underline-headers
  • underscore-em
  • underscore-strong
  • num-blocks
  • no-wrapping
  • fenced-code-blocks

Building and running from source

  • Install stack.
  • Issue stack build --copy-bins to build the project. This will put the executable in ~/.local/bin.
  • Use mkdir log to ensure that directory exists.
  • Run using e.g. lorem-markdownum-web 127.0.0.1 8080.