Get single list item

Hello everyone,

I’m quite happy with the new blocks editor. One question is remaining:

I want to change the styling of list blocks. This is my list.php:

<ul class="list-unstyled mb-7">
  <li class="d-flex">

    <!-- Check -->
    <div class="badge badge-rounded-circle badge-primary-soft mt-1 mr-4">
      <i class="fe fe-chevron-right"></i>
    </div>

    <!-- Text -->
    <p>
      <?= $block->text() ?>
    </p>

  </li>
</ul>

The result is (logically):

Bildschirmfoto 2021-03-17 um 13.21.30

How can I get a while-loop for every single list element and how can I remove the li-bullets before the Text?

Big thanks!

Kirby stores the complete HTML for a list block in the content file, so you cannot get the individual list items unless you parse the html or do some string replacements. The other option would be to style the list via its wrapper rather than attaching utility classes onto the items.