Definition lists

The term is given on a line by itself, followed by one or more definitions. Each definition must begin with : (after 0-2 spaces); subsequent lines must be indented unless they are lazy paragraph continuations.

The list is tight if there is no blank line between the term and the first definition, otherwise loose.

Example 1
$ comrak -e description-lists
apple
:   red fruit

orange
:   orange fruit

Loose:

Example 2
$ comrak -e description-lists
apple

:   red fruit

orange

:   orange fruit

Indented marker:

Example 3
$ comrak -e description-lists
apple
  : red fruit

orange
  : orange fruit
Example 4
$ comrak -e description-lists
apple

 : red fruit

orange

 : orange fruit

Multiple blocks in a definition:

Example 5
$ comrak -e description-lists
*apple*

:   red fruit

    contains seeds,
    crisp, pleasant to taste

*orange*

:   orange fruit

        { orange code block }

    > orange block quote

Nested lists:

Example 6
$ comrak -e description-lists
term

:   1. Para one

       Para two

Multiple definitions, tight:

Example 7
$ comrak -e description-lists
apple
:   red fruit
:   computer company

orange
:   orange fruit
:   telecom company

Multiple definitions, loose:

Example 8
$ comrak -e description-lists
apple

:   red fruit

:   computer company

orange

:   orange fruit
:   telecom company

Lazy line continuations:

Example 9
$ comrak -e description-lists
apple

:   red fruit

:   computer
company

orange

:   orange
fruit
:   telecom company

~ may be used as a marker instead of ::

Example 10
$ comrak -e description-lists
apple
  ~ red fruit

orange
  ~ orange fruit

Definition terms may span multiple lines:

Example 11
$ comrak -e description-lists
a
b\
c

:   foo

Definition list with preceding paragraph (https://github.com/jgm/commonmark-hs/issues/35):

Example 12
$ comrak -e description-lists
Foo

bar
:   baz

bim
:   bor