Generating Output Using WebWorks Markdown Standard : Lists
In the WebWorks Markdown Standard, numerical and bulleted lists can be created. Lower roman lists are only supported as sub-lists within a numerical list item if the the sub-list is also numerical.
A list is created by starting the line of text with a number followed by a period for a numbered list, or an asterisk, hyphen, or plus sign for bulleted lists. To start a sub list within a list item, the syntax is the same with the addition of an indentation of three spaces.
Keep in mind that it does not matter that the numeric lists are actually in sequence in the source document, all that matters is the initial character that starts the list. After that, all list items will be formatted to that style.
For example:
1. Spaghetti & meatballs
* One box pasta
- One bottle of tomato & basil sauce
1. 1 lb ground beef
* Fried rice
1. White rice
- Soy sauce
* Mixed veggies
Would format into:
1. Spaghetti & meatballs
One box pasta
One bottle of marinara sauce
1 lb ground beef
2. Fried rice
i. White rice
ii. Soy sauce
iii. Mixed veggies
In addition to nesting lists within lists, you can also nest plain paragraphs within lists. To do this, a set of three white spaces is used in a new line after a list item. For example:
1. Spaghetti & meatballs cooking instructions
Bring water to a rapid boil. Add spaghetti and cook for 10 minutes.
Grill the meatballs first in a separate pan, then add in marinara sauce.
Lists will continue to generate in sequence until a new style of content is created, if a second list needs to appear directly after the first list, separate the lists by two empty lines. A list can be nested within another list up to 4 levels deep.