Numbered lists are useful for listing the order things should happen in:

  1. Get dressed.
  2. Eat breakfast.
  3. Leave the house.

<aside> ℹ️ Notion supports starting numbered lists at any number, but does not expose this information in their API. This means this renderer will not respect numbered lists that start at any number besides 1.

</aside>

  1. This list item has number 7 in Notion, but will start at number 1 when rendered.
    1. This is an indented list item.
    2. This is another indented list item, but this one has children.
      1. This is the child.
      2. This is the second child

Notes

Because of how Notion treats blocks, each bullet point is contained in its own ol tag. There is currently no work-around for this.

Styling

Each bullet point (not each list) is contained in its own ol tag. You can therefore target ol or ol li to change the style.