Syntax #
p.li.ordered(level)
level
nesting level for the list, any integer
Purpose #
This annotation is used to create an ordered list of items. An ordered list is a collection of items placed in order of importance, usually from greatest to least important. The parentheses must contain a number that corresponds to the nesting level of the list item. Ordered lists can be as deeply nested as you want.
The number at the beginning of the list will sometimes be followed by a period or other character, but not always. That is dependent on the style of the author.
Here is an ordered list with two levels; this is a list of the inner planets with their moons, in order of distance from the sun.
1. Mercury
2. Venus
3. Earth
a. Moon
4. Mars
a. Phobos
b. Deimos
This will require two rules, one for each nesting level.
This is the output you would get from these rules.
<ol> <li>Mercury</li> <li>Venus</li> <li> Earth <ol> <li>Moon</li> </ol> </li> <li> Mars <ol> <li>Phobos</li> <li>Deimos</li> </ol> </li> </ol>