Since Svelte style blocks don't cascade, we can't create a renderer for
lists that will style list items. We need to instead style the list item
directly. For more complex styling like changing the list marker, it can be
helpful to know if this is an ordered list or unordered. This change differentiates
between the two and provides a renderer for each case.
Add ordered attribute to the parser
Use the ordered attribute to determine if the list is ordered or not
For ordered lists, call the ordered list item renderer
For unordered lists, call the unordered list item renderer
Duplicates the default renderer - assigns one copy to each name (not needed but
could help avoid confusion)
Since Svelte style blocks don't cascade, we can't create a renderer for lists that will style list items. We need to instead style the list item directly. For more complex styling like changing the list marker, it can be helpful to know if this is an ordered list or unordered. This change differentiates between the two and provides a renderer for each case.