pablo-abc / svelte-markdown

Markdown parser to svelte components
MIT License
360 stars 50 forks source link

Split ordered and unordered list renderers #9

Closed zgagnon closed 3 years ago

zgagnon commented 3 years ago

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.