update list renderer

This commit is contained in:
Maxime Cannoodt 2022-06-24 13:57:38 +02:00
parent 4f4bbd7019
commit 10f239b2e5

View File

@ -3,8 +3,9 @@
export let start: number;
</script>
<!-- Styling is taken care of by Tailwind Typography plugin -->
{#if ordered}
<ol class="list-decimal list-inside" {start}><slot /></ol>
<ol><slot /></ol>
{:else}
<ul class="list-disc list-inside"><slot /></ul>
<ul><slot /></ul>
{/if}