Lists

jemdoc-rs supports unordered, ordered, and definition lists, including nesting.

Unordered Lists

Use - to create unordered list items:

- First item
- Second item
- Third item
  • First item

  • Second item

  • Third item

Nested Unordered Lists

Use -- for the second level, --- for the third:

- Top level A
-- Nested A.1
-- Nested A.2
--- Deeply nested A.2.1
--- Deeply nested A.2.2
- Top level B
-- Nested B.1
  • Top level A

    • Nested A.1

    • Nested A.2

      • Deeply nested A.2.1

      • Deeply nested A.2.2

  • Top level B

    • Nested B.1

Ordered Lists

Use . for ordered (numbered) list items:

. First step
. Second step
. Third step
  1. First step

  2. Second step

  3. Third step

Nested Ordered Lists

. Top level step
.. Sub-step one
.. Sub-step two
. Another top level step
.. Another sub-step
  1. Top level step

    1. Sub-step one

    2. Sub-step two

  2. Another top level step

    1. Another sub-step

Definition Lists

Use : with {term} for definition lists:

: {Term One} Definition of term one.
: {Term Two} Definition of term two.
Term One

Definition of term one. Definitions can contain bold, italic, and links.

Term Two

Definition of term two.

\(E = mc^2\)

Even equations can be used as definition terms.

Formatting in Lists

List items can contain any inline formatting:

  • Bold item with a link

  • Italic item with monospace and underline

  • Item with inline math: \(x^2 + y^2 = r^2\)