mr_markdown_builder

[ Back to examples index ]


Lists

Generated by examples/lists-example.js, covering ul, ol, and tl (task lists), including nesting.

Unordered (ul)

Unordered with a callback

Ordered (ol)

  1. Preheat the oven
  2. Mix the batter
  3. Bake for 25 minutes

Task list (tl) with plain strings

Plain strings always render unchecked:

Task list (tl) with checked items

Pass { text, checked } objects to control each box individually:

Nested lists

There’s no separate nesting API: embed a rendered ul()/ol()/tl() call inside an item’s text, and the continuation lines are automatically indented to stay part of that item.

Unordered inside unordered

Ordered inside ordered

  1. Prep
    1. Preheat the oven
    2. Grease the pan
  2. Bake for 25 minutes

Task list inside unordered