Numbered Lists
rascal-0.34.0
rascal-tutor-0.18.4
Synopsis
A (possibly nested) list of numbered points.
Syntax
Here ␠
is used to represent a visible space:
1. MarkedText
␠␠␠1. MarkedText
␠␠␠␠␠␠1. MarkedText
Description
Numbered Lists create, possibly nested, lists of numbered points.
They start with a number followed by a period (1.
). The number of spaces indicates the nesting level, every 3 spaces represents one level.
A list item ends with:
- the start of a new list item.
- an empty line.
Bullet Lists and Numbered Lists can be mixed.
Examples
The input
1. First item.
1. Second item.
will produce:
- First item.
- Second item.
The input
1. First item.
1. First subitem.
1. Second subitem.
1. Second item
will produce:
- First item.
- First subitem.
- Second subitem.
- Second item
Pitfalls
- An empty line is required after a NumberedList